• 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: Confused with Chapter 7 in Hillegass' book (2nd ed.)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Confused with Chapter 7 in Hillegass' book (2nd ed.) (From: Steven Harms <email@hidden>)

  • Prev by Date: Re: cocoa app from scratch
  • Next by Date: Re: Confused with Chapter 7 in Hillegass' book (2nd ed.)
  • Previous by thread: Confused with Chapter 7 in Hillegass' book (2nd ed.)
  • Next by thread: Re: Confused with Chapter 7 in Hillegass' book (2nd ed.)
  • Index(es):
    • Date
    • Thread