• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing NSArrayControllers add: action (was: Binding problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Changing NSArrayControllers add: action (was: Binding problem)
      • From: Tackel <email@hidden>
References: 
 >Binding problem (From: Tackel <email@hidden>)
 >Re: Binding problem (From: mmalcolm crawford <email@hidden>)
 >Re: Binding problem (From: Tackel <email@hidden>)

  • Prev by Date: Re: Binding problem
  • Next by Date: Re: Is there any support in Cocoa for stupidly encoded UTF-8 string?
  • Previous by thread: Re: Binding problem
  • Next by thread: Re: Changing NSArrayControllers add: action (was: Binding problem)
  • Index(es):
    • Date
    • Thread