Bindings and NSPopupButtonCell pulldown
Bindings and NSPopupButtonCell pulldown
- Subject: Bindings and NSPopupButtonCell pulldown
- From: Björn Carlström <email@hidden>
- Date: Fri, 29 Apr 2005 04:34:46 +0200
Hi
I'm just learing about bindings and have run in to a problem. From apples examples I managed to create an NSOutlineView displaying a popup in a column. I've even managed to poulate tha button using NSArrayController. But when setting the popup to the pulldown version the menuitems start at index 1 instead of 0. The result is being the first item in the menu is left out. A call to
setUsesItemFromMenu makes it possible to have the right title, but doesn't change where indexing starts (which would have been nice!).
So, my question: Is there a way to work arround this and still use bindings? I don't want to put in a dummy item at the begining of my array.
Björn
_______________________________________________
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