Re: changeKeyPath method documentation
Re: changeKeyPath method documentation
- Subject: Re: changeKeyPath method documentation
- From: Russell Martin <email@hidden>
- Date: Sat, 10 Jan 2009 10:06:13 -0800 (PST)
So, are you saying that changeKeyPath isn't an override or a delegate method? If so, then why don't I have to put a stub in the .h file? I thought that unless I was implementing an override or delegate method that the stub in the .h was required. Is my thinking wrong on this? And, if so, when is the stub in the .h file required and not required?
Again, thanks for any info.
--- On Sat, 1/10/09, Michael Donegan <email@hidden> wrote:
> From: Michael Donegan <email@hidden>
> Subject: Re: changeKeyPath method documentation
> To: email@hidden
> Date: Saturday, January 10, 2009, 8:46 AM
> > 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
_______________________________________________
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