• 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: Controller introspection API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Controller introspection API (From: "Jonathan 'Wolf' Rentzsch" <email@hidden>)
 >Re: Controller introspection API (From: Scott Anguish <email@hidden>)

  • Prev by Date: Delete row from NSTableView
  • Next by Date: seg fault quandry
  • Previous by thread: Re: Controller introspection API
  • Next by thread: re: CocoaInCarbon printing
  • Index(es):
    • Date
    • Thread