[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #36967] Manual Key Value Observing Not Using Passed Objects
From: |
Robin |
Subject: |
[bug #36967] Manual Key Value Observing Not Using Passed Objects |
Date: |
Thu, 26 Jul 2012 18:55:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11 |
URL:
<http://savannah.gnu.org/bugs/?36967>
Summary: Manual Key Value Observing Not Using Passed Objects
Project: GNUstep
Submitted by: rdemet
Submitted on: Thu 26 Jul 2012 06:55:31 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Looking at the implementation of NSKeyValueObserving.m
(lines 1816, 1846)
.. willChangeValueForKey: (NSString*)aKey
withSetMutation: (NSKeyValueSetMutationKind)mutationKind
usingObjects:(NSSet*)objects
and
... didChangeValueForKey: (NSString*)aKey
withSetMutation: (NSKeyValueSetMutationKind)mutationKind
usingObjects: (NSSet*)objects
I notice that the NSSet* object parameter is not being used, but instead the
property 'aKey' is being requested each time.
Should this implementation not use the passed NSSet* of objects when deciding
on the delta to report to the observers?
I have code running on OSX Lion that appears to do this, and from the function
signatures I expect that's the intended behaviour.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36967>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #36967] Manual Key Value Observing Not Using Passed Objects,
Robin <=