Re: Disable popup button cell in table view
Re: Disable popup button cell in table view
- Subject: Re: Disable popup button cell in table view
- From: Stephane Sudre <email@hidden>
- Date: Tue, 26 Jun 2007 00:52:05 +0200
On Jun 26, 2007, at 12:11 AM, Greg Hoover wrote:
I'd like to make a table view be optionally editable based on some
user preference. The delegate method shouldEditTableColumn: works
well for text cells, but popup button cells don't seem to respect
this setting.
Is it possible to disable a popup button cell in a table view (ie.
prevent it from showing the menu when clicked on)? I'm hoping
there's a method simpler than swapping out the cell class.
In - (void)tableView:(NSTableView *)tableView willDisplayCell:(id)
cell forTableColumn:(NSTableColumn *)tableColumn row:(int) rowIndex;
you just disable the cell if needed.
_______________________________________________
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