Hi Guys
A question from a beginner.
I am working through Aaron Hillegas's book and have just got the
first stages of a cocoa document based application running. In order
to acheive undo and redo functionality it uses key value observing.
The project compiles with no errors and runs correctly when I write
is placed after methods with
[self startObservingPerson:p];
or
[self stopObservingPerson:person];
I thought in my simple understanding methods could go in any order.
warnings look like this and the application indeed does not respond
as it should
Building target “RaiseMan” of project “RaiseMan” with configuration
“Debug” — (3 warnings)
'MyDocument' may not respond to '-stopObservingPerson:'
'MyDocument' may not respond to '-startObservingPerson:'
'MyDocument' may not respond to '-startObservingPerson:'
Happy for contradiction
Cheers Martin
Martin Kyte
Electronics Workshop
MRC Laboratory of Molecular Biology
Hills Road, Cambridge, CB2 2QH
Tel 01223 252975
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