Re: changeKeyPath method documentation
Re: changeKeyPath method documentation
- Subject: Re: changeKeyPath method documentation
- From: Michael Donegan <email@hidden>
- Date: Sat, 10 Jan 2009 09:46:18 -0600
I'm working through Aaron Hillegass' "Cocoa Programming For Mac OS X
(3rd Ed)" and I'm near the end of chapter 9 (pg 148) where it is
shown to make use of the changeKeyPath method. I'm in the habit of
right clicking on method names and choosing "Find selected text in
API reference/in documenation". When I do this for "changeKeyPath",
nothing comes up on my machine?
This is because changeKeyPath:ofObject:toValue is new method in the
application. It is a little confusing. The implementation of the Cocoa
method
observeValueForKeyPath:ofObject:change:context registers the call to
changeKeyPath:ofObject:toValue to be called later if an undo occurs.
It is all a bit confusing since the book shows the implementation of
the changeKeyPath:ofObject:toValue: before it shows how it will get
called. Read about this in the Undo Architecture documentation.
mkd
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden