bugGNUstep - Bugs: bug #41324, NSKeyValueObservingOptionInitial...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41324: NSKeyValueObservingOptionInitial does not support key paths

Submitted by:  Frederik <triplef>
Submitted on:  Thu 23 Jan 2014 05:56:40 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 25 Jan 2014 06:58:54 AM UTC, comment #1:

Thanks for spotting that … I applied the patch to svn trunk.

Richard Frith-Macdonald <CaS>
Project Member
Thu 23 Jan 2014 05:56:40 PM UTC, original submission:

When using (NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew) as option for -[NSObject observeValueForKeyPath:ofObject:change:context:], GNUstep should use -valueForKeyPath: instead of -valueForKey: to retrieve the current (initial) value.

With the current implementation, only single keys ("property") are supported for 'aPath' for this combination of options, whereas key paths ("propertyA.propertyB") are not. This is in contrast to Apple’s implementation.

A patch is attached.

Frederik <triplef>

 

Attached Files
file #30355:  NSKeyValueObserving.patch added by triplef (120B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by triplef (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Jan 2014 06:58:54 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 23 Jan 2014 05:56:40 PM UTCtriplefAttached File-=>Added NSKeyValueObserving.patch, #30355

    Back to the top


    Powered by Savane 3.1-cleanup1