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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to