bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #41324] NSKeyValueObservingOptionInitial does not support key paths


From: Frederik
Subject: [bug #41324] NSKeyValueObservingOptionInitial does not support key paths
Date: Thu, 23 Jan 2014 17:56:42 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]