URL:
  <http://savannah.gnu.org/bugs/?41324>

                 Summary: NSKeyValueObservingOptionInitial does not support
key paths
                 Project: GNUstep
            Submitted by: triplef
            Submitted on: Do 23 Jan 2014 17:56:40 GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Do 23 Jan 2014 17:56:40 GMT  Name: NSKeyValueObserving.patch  Size: 120B
  By: triplef

<http://savannah.gnu.org/bugs/download.php?file_id=30355>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41324>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to