• 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: Updating an NSPopUpButtonCell menu in an NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating an NSPopUpButtonCell menu in an NSOutlineView


  • Subject: Re: Updating an NSPopUpButtonCell menu in an NSOutlineView
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 7 Dec 2004 07:54:50 -0600

The usual way to customize the properties of a cell by row and column in an NSTableView is with the delegate method tableView:willDisplayCell:forTableColumn:row:. This gives you the cell, row, and column.

	-- F

On 6 Dec 2004, at 7:36 AM, René Puls wrote:

I have an NSOutlineView where multiple columns have NSPopUpButtonCells as their data cells. I want to have different popup menu contents when the user clicks on a cell, depending on both row and column, but so far I have been unsuccessful.

My first idea was to set a custom menu with a delegate for the cells, but the menuNeedsUpdate: method is never called. (AppKit Bug?)

Then I saw that NSPopUpButtonCell broadcasts a NSPopUpButtonCellWillPopUpNotification notification.
...
Perhaps I could find the row and column by checking the [NSApp currentEvent] coordinates
...

_______________________________________________
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


  • Follow-Ups:
    • Re: Updating an NSPopUpButtonCell menu in an NSOutlineView
      • From: René Puls <email@hidden>
References: 
 >Updating an NSPopUpButtonCell menu in an NSOutlineView (From: René Puls <email@hidden>)

  • Prev by Date: Re: Save Output of NSTask to file
  • Next by Date: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
  • Previous by thread: Updating an NSPopUpButtonCell menu in an NSOutlineView
  • Next by thread: Re: Updating an NSPopUpButtonCell menu in an NSOutlineView
  • Index(es):
    • Date
    • Thread