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

Group
 
 

bug #41324: NSKeyValueObservingOptionInitial does not support key paths

Submitter:  Frederik <triplef>
Submitted:  Thu 23 Jan 2014 05:56:40 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by triplef (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-25 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2014-01-23 triplef Attached File- Added NSKeyValueObserving.patch, #30355

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code