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: Tackel <email@hidden>
- Date: Thu, 20 Jan 2005 23:18:21 +0100
Hi,
On 21/01/2005, at 8:31 AM, Tackel wrote:
Hi Mmalc,
I wanted to avoid adding any outlet
Why is this?
I think it wouldn't be necessary
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.
understood.
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.
I'll do it so.
- tim lucas
http://www.toolmantim.com
Many thanks Lucas and MMalc,
Tackel
_______________________________________________
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