Re: Updating an NSPopUpButtonCell menu in an NSOutlineView
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