• 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: Binding & other actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding & other actions


  • Subject: Re: Binding & other actions
  • From: James DiPalma <email@hidden>
  • Date: Fri, 28 May 2004 11:58:45 -0700

connected to an NSArrayController's add: and remove: actions

add:/remove: are actions and are unrelated to bindings.

Unfortunately, I've been struggling to figure out how to add 'other actions' to that event as well. Specifically, I'm trying to add an "are you sure?" to the remove button prior to removing. I'm also trying to perform additional checks on the 'add' button.

This kind of behavior change has more to do with inheritance than bindings or with Cocoa; if you want to override what they do, you can subclass NSArrayController (or instantiate a new controller). By overriding NSArrayController's add:, you can do your checks, put up UI if you want, and then call NSArrayController's add: method.


-jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Binding & other actions
      • From: J Nozzi <email@hidden>
References: 
 >Binding & other actions (From: J Nozzi <email@hidden>)

  • Prev by Date: Re: Class Hierarchy in the Interface Builder
  • Next by Date: Re: Binding & other actions
  • Previous by thread: Re: Binding & other actions
  • Next by thread: Re: Binding & other actions
  • Index(es):
    • Date
    • Thread