Subclassing NSArrayController?

2008-08-19 Thread Chris Poliquin
Hi, I have an ArrayController in IB to manage an array of NSObjects (a custom class) for a TableView. When a new item is inserted via a button connected to insert: a new instance of my class is created and appears in the table. However, I want to be able to control the property values

Re: Subclassing NSArrayController?

2008-08-19 Thread Ron Lue-Sang
Subclass and override newObject which is declared in NSObjectController.h You can set any properties you like from there. - RONZILLA On Aug 19, 2008, at 7:27 AM, Chris Poliquin [EMAIL PROTECTED] wrote: Hi, I have an ArrayController in IB to manage an array of

Re: Subclassing NSArrayController?

2008-08-19 Thread Justin Giboney
This is maybe an answer as well as a question. Doesn't the bindings call the init method when creating a class object? Couldn't you just overwrite the init method on your custom class to set any necessary values? Justin Giboney On Aug 19, 2008, at 8:27 AM, Chris Poliquin wrote: Hi, I

Re: Subclassing NSArrayController

2008-04-15 Thread Jeff LaMarche
On Apr 14, 2008, at 11:53 PM, antikraft clover wrote: If I am subclassing NSArrayController to provide and update an array of objects, which methods do I need to implement ? What are you trying to accomplish. The only time that I regularly subclass NSArrayController is to implement drag

Re: Subclassing NSArrayController

2008-04-14 Thread Scott Anguish
On Apr 14, 2008, at 11:53 PM, antikraft clover wrote: A very newbie-ish question: If I am subclassing NSArrayController to provide and update an array of objects, which methods do I need to implement ? you may want to provide more information, or re-check the docs. it shouldn't be necessary