• 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
NSArrayController not calling insertObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController not calling insertObject


  • Subject: NSArrayController not calling insertObject
  • From: David Holmes <email@hidden>
  • Date: Sun, 10 Apr 2005 16:08:11 -0500

I am going through the Hillegass book and am up to the point in RaiseMan where the first stage of undo is implemented. NSArrayConroller is supposed to call MyDocument's insertObject:inEmployeesAtIndex and removeObjectFromEmployeesatIndex to add and remove Person objects, but it is not.

I have NSArray bound to File Owner's MyDocument, Model Key Path is employees. Clicking on the button to create a new employee does work, but goes directly to the Person class and not through MyDocument. I have disconnected File's Owner from NSArrayController's personController and the program still works as when it is connected.

If I change the Model Key Path for the contentArray binding for the NSArrayController to something that doesn't exist, I get an error as expected. But it doesn't even seem to be using the binding.

If this makes any sense and you have been through this chapter in the book, can you please help? Thank you.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: progress bar on sheet
  • Next by Date: NSBezierPath geometry question...
  • Previous by thread: Re: Using wildcards in string comparison
  • Next by thread: RE: NSArrayController not calling insertObject
  • Index(es):
    • Date
    • Thread