Re: Confirming Item Removal with Bindings
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