• 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: Confirming Item Removal with Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confirming Item Removal with Bindings


  • Subject: Re: Confirming Item Removal with Bindings
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 14 Apr 2005 09:50:41 -0400
  • Organization: Rogue Research

On 2005-04-13 20:44, Evan DiBiase said:

>In short, I have an NSArrayController and a button that is linked to
>the remove: action of the controller. I'd like to present the user with
>an opportunity to veto the removal (via an alert sheet). Is this
>possible to do using bindings?

Make your 'remove' button show the sheet, then the user decides to remove
it (by clicking 'yes, remove' in the sheet.  Bind *that* button to the
remove: action of the controller.

On a UI note, sheets asking the user to confirm what the user *already
told the computer to do* can often be annoying.  It is often better to
just delete the thing, then let the user undo.  Of course, it all depends
on your exact situation.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: Confirming Item Removal with Bindings
      • From: Evan DiBiase <email@hidden>
    • Re: Confirming Item Removal with Bindings
      • From: Jonathon Mah <email@hidden>
References: 
 >Confirming Item Removal with Bindings (From: Evan DiBiase <email@hidden>)

  • Prev by Date: Custom ruler view for NSTextView?
  • Next by Date: Re: Confirming Item Removal with Bindings
  • Previous by thread: Confirming Item Removal with Bindings
  • Next by thread: Re: Confirming Item Removal with Bindings
  • Index(es):
    • Date
    • Thread