NSArrayController not calling insertObject
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