where to call selectItemAtIndex: on NSOutlineView
where to call selectItemAtIndex: on NSOutlineView
- Subject: where to call selectItemAtIndex: on NSOutlineView
- From: "William Zumwalt" <email@hidden>
- Date: Sat, 23 Jun 2007 01:46:35 -0500
I have an NSOutlineView and I'm trying to set an NSPopUpButtonCell
programatically with 3 menu items inside one of the cells of a column.
The problem is that when I build the outline hierarchy to be displayed, the
NSPopUpButtonCell displays the first title only. I have a dataCellForRow:
where I add the NSPopUpButtonCell to this specific row. This gets called
quite often and I can't seem to be able to do a [cell selectItemAtIndex:val]
from within it or elsewhere to select the menu in this popup cell.
However, if I select it manually w/ the mouse, then my selection displays. I
use setObjectValue::: in my outlines controller to do this. At what point
should I call my selectItemAtIndex:?
Any ideas?
_______________________________________________
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