Re: Confirming Item Removal with Bindings
Re: Confirming Item Removal with Bindings
- Subject: Re: Confirming Item Removal with Bindings
- From: Jonathon Mah <email@hidden>
- Date: Thu, 14 Apr 2005 23:26:34 +0930
On 14 Apr 2005, at 10:14, Evan DiBiase wrote:
I'm running in to a problem with bindings that seems like it should
have a straightfoward solution, but Google and Cocoabuilder have
failed me.
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?
The best thing to do in this situation is have the button send a
"confirmRemoveOfObject" message to some custom controller class (not
the NSArrayController), which will show the alert and then send
'remove:' to the array controller. In other words, you're putting some
other controller in between the UI and the NSArrayController.
Jonathon Mah
email@hidden
_______________________________________________
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