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-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep