Re: Controller introspection API
Re: Controller introspection API
- Subject: Re: Controller introspection API
- From: Shaun Wexler <email@hidden>
- Date: Mon, 1 Mar 2004 11:53:46 -0800
On Mar 1, 2004, at 10:32 AM, Scott Anguish wrote:
On Mar 1, 2004, at 9:16 AM, Jonathan 'Wolf' Rentzsch wrote:
So long as I'm subclassing, I'd like to make the NSTableView
controller-aware for the purposes of:
* Deleting a row via the delete key and
* Drag and Drop
I'm not sure that Drag and Drop should be implemented at the
tableview level...
but the delete key thing, yeah, that seems that should be the place
to do that.
How about placing a transparent NSButton behind the NSTableView in IB,
with Delete key equiv, action = @selector(remove:), target =
NSArrayController instance (or First Responder [nil], if he can't get
the controller's id). The button could optionally have its "enabled"
key bound to the controller's "canRemove" key. I had to do it this way
for certain behavior in a drawer, and it works fine.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.