Re: Changing NSArrayControllers add: action (was: Binding problem)
Re: Changing NSArrayControllers add: action (was: Binding problem)
- Subject: Re: Changing NSArrayControllers add: action (was: Binding problem)
- From: Tim Lucas <email@hidden>
- Date: Fri, 21 Jan 2005 09:11:54 +1100
On 21/01/2005, at 8:31 AM, Tackel wrote:
Hi Mmalc,
I wanted to avoid adding any outlet
Why is this?
i thought it would be simpler getting the info from the (id)object
passed to addObject method but this object is always empty I cannot
get any info from it.
Because it represents a new object that will be added to your array
controller's content array -- not the sender of the action message.
I think you may be confused between the add: action method, and the
addObject: method.
If you really want to change the action method, then override the -
(void)add:(id)sender method, but if you are looking for the simpler and
most common solution, I suggest just using outlets and overriding
addObject.
- tim lucas
http://www.toolmantim.com
_______________________________________________
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