Re: Confused with Chapter 7 in Hillegass' book (2nd ed.)
Re: Confused with Chapter 7 in Hillegass' book (2nd ed.)
- Subject: Re: Confused with Chapter 7 in Hillegass' book (2nd ed.)
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 28 Jul 2004 16:29:19 -0700
On Jul 28, 2004, at 3:52 PM, Steven Harms wrote:
I'm particularly baffled about the mention of setEmployees: under the
heading "adding undo to raiseman". Why is this function here?
It might be helpful to add some more context for those who don't have
the book to hand...
I think it's so that the NSArrayController can talk to MyDocument --
but what calls it? I understand the retain and release etc. -- but
when is this called, by what, is this part of the default behavior of
NSArrayController?
At a guess, for example:
<
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSArrayController.html>
- (void)addObjects:(NSArray *)objects
Adds objects to the receivers content array.
Then
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/index.html>
and specifically:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/AccessorConventions.html>
"Although your application can implement accessor methods for to-many
relationship properties using the -<key> and -set<Key>: accessor
forms..."
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.