On 11 Feb 2010, at 1:20 PM, Tony Romano wrote:

> Environment:
> 
> 1. Core Data, Document based app.
> 2. UI contains a NSTableView, Add, Remove, ...  
> 3. NSArrayController.
> 
> The App works fine, I can Add/Remove objects, Save/Load Works, Undo Works. 
> 
> Problem:
> 
> I am trying to override the -(id)newObject  method to change one of the UI 
> elements in the Window as part of the 'Add' operation.  So, I created a new 
> class derived from NSArrayController, implemented the newObject method and it 
> never gets called.  In fact, I've stubbed several other methods of 
> NSArrayController and NONE of them get called.
> 
> What am I missing? 

The first thing I'd look for is whether you're using your subclass when you 
instantiate the array controller. I assume you do this in the NIB. When you 
select the array controller and look at the Identity inspector, what class does 
it show?

        — F

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to