popup bindings initial object
popup bindings initial object
- Subject: popup bindings initial object
- From: Theodore Petrosky <email@hidden>
- Date: Sat, 17 Mar 2007 08:11:37 -0700 (PDT)
I have an NSPopUpButton the is bound manually to an
array (coming from a connected database). I have
everything working fine except I can not seem to 'set'
or get the inital value.
I have a simple interface that show the problem. In
the init of the controller I create the array and
populate it with custom objects. then I bind the array
to the arraycontroller. the arraycontroller is
connected to the popup in IB for content,
contentValues, selectedObject. It works great.
at the end of the awakeFromNib, I want to find the
selectedObject. I have tried to [thePopUpButton
selectItemAtIndex:0];
[popupArrayController setSelectionIndex:0];
then ask the selectedObject (of the bound popup) for
its value. it is always 'null' until I manually change
the popup. Even if I change the selection
programmatically, the bound object does not update.
Does anyone want to see my sample app?
Ted
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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