• 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: 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


References: 
 >Binding problem (From: Tackel <email@hidden>)
 >Re: Binding problem (From: mmalcolm crawford <email@hidden>)
 >Re: Binding problem (From: Tackel <email@hidden>)
 >Re: Changing NSArrayControllers add: action (was: Binding problem) (From: Tim Lucas <email@hidden>)

  • Prev by Date: Beginner problem with multiple NSTableView
  • Next by Date: Re: Authorization without permanent setuid on helper
  • Previous by thread: Re: Changing NSArrayControllers add: action (was: Binding problem)
  • Next by thread: Multiple controllers vs multiple categories (or tips for large projects)
  • Index(es):
    • Date
    • Thread