• 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: Dan Hancu <email@hidden>
  • Date: Wed, 28 Jul 2004 16:35:13 -0700

On Jul 28, 2004, at 3:52 PM, Steven Harms wrote:

I'm assuming you have the book (2nd ed).
I'm particularly baffled about the mention of setEmployees: under the heading "adding undo to raiseman". Why is this function here? 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?

setEmployees is used in a later chapter, and I believe NSArrayController uses it in an automagical fashion.



p. 146 - How does the insert: message equate into the just explained 'insertObject:inEmployeesAtIndex" ?

Anyone able to explain these bits?


I am completely baffled by this line, several people have left comments on the book's webpage, but there hasn't been a response from Aaron yet. It does mention that they will be called automatically, and keep in mind that if you change the function name to xinsertObject: inEmployeesAtIndex: it will not work.

Thanks,

Steven

I would love to hear a conclusive answer though.

Dan Hancu
_______________________________________________
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: Confused with Chapter 7 in Hillegass' book (2nd ed.)
  • Next by Date: Re: Bindings & popup
  • Previous by thread: Re: 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