• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: changeKeyPath method documentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: changeKeyPath method documentation
      • From: Russell Martin <email@hidden>
  • Prev by Date: Re: A Data Object in Cocoa
  • Next by Date: Any nice way to quit a background/helper app?
  • Previous by thread: Re: changeKeyPath method documentation
  • Next by thread: Re: changeKeyPath method documentation
  • Index(es):
    • Date
    • Thread