Re: Binding NSPopUpButton
Re: Binding NSPopUpButton
- Subject: Re: Binding NSPopUpButton
- From: Jeremy Sacket <email@hidden>
- Date: Mon, 9 Jan 2006 15:24:47 -0600
In your example, you have the preference file saved as the index of
the selected file.
What if I had:
- (NSArray *) levels
{
return [NSArray arrayWithObjects:@"Quiet", @"Normal", @"Verbose",
@"Debug Output", nil];
}
- (NSArray *) levelsKey
{
return [NSArray arrayWithObjects:@"QUIET", @"NORMAL", @"VERBOSE",
@"DEBUG", nil];
}
How can I get it to save DEBUG in the preference file, but still show
"Debug Output" in the pull down menu?
On Jan 9, 2006, at 3:13 PM, Alexander von Below wrote:
I have little article here:
http://vonbelow.com/weblog/archives/19-User-Defaults,-NSPopUpButton-
and-Bindings.html
HTH
Alex
Am 09.01.2006 um 22:09 schrieb Jeremy Sacket:
First off, here is what I am trying to do. I have a popup that
need to have a key and a title.
For example,
CAT = "Cat"
DOG ="Dog"
I am needing to bind the popup button so that the title will show
and the key will be stored in the object.
What combination of bindings do I use. I have tried:
Content->Array of Cat, Dog
ContentValues->Array of CAT, DOG
SelectedObject - > pet
ContentValue->Array of Cat, Dog
Content->Array of CAT, DOG
SelectedObject - > pet
Any many more combinations.
I appreciate any help.
Jeremy
_______________________________________________
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
_______________________________________________
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