• 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: NSTableView and programmatic changing of contextual menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and programmatic changing of contextual menu


  • Subject: Re: NSTableView and programmatic changing of contextual menu
  • From: Corbin Dunn <email@hidden>
  • Date: Tue, 25 Aug 2009 09:35:53 -0700


On Aug 25, 2009, at 9:30 AM, Kyle Sluder wrote:

On Tue, Aug 25, 2009 at 9:11 AM, Corbin Dunn<email@hidden> wrote:
However, it will work (and it is a recommended way to solve this problem),
since the tableView will first acquire a "preparedCellAtColumn:row:", which
calls tableView:willDisplayCell:. So, any menu you have set there will
correctly is used. This technique is also shown in the DragNDropOutlineView
demo app on 10.5.

Ah. Is this documented anywhere?

Yes -- the AppKit release notes should be considered part of our official documentation.


http://developer.apple.com/releasenotes/Cocoa/AppKit.html

(Looks like NSTableView.h makes an
oblique reference to this in its headerdoc for
-performClickOnCellAtColumn:row:).  I'd hate to rely on implementation
details.


The header comments are also correct and can be relied upon.

corbin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTableView and programmatic changing of contextual menu (From: Jack Carbaugh <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Kyle Sluder <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Jack Carbaugh <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Kyle Sluder <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Jason Foreman <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Kyle Sluder <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView and programmatic changing of contextual menu (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTableView and programmatic changing of contextual menu
  • Next by Date: Stop automatic editing of NSTextField
  • Previous by thread: Re: NSTableView and programmatic changing of contextual menu
  • Next by thread: applicationWillTerminate: issue
  • Index(es):
    • Date
    • Thread