Re: Getting the contentValues of an NSPopUpButtonCell
Re: Getting the contentValues of an NSPopUpButtonCell
- Subject: Re: Getting the contentValues of an NSPopUpButtonCell
- From: email@hidden
- Date: Tue, 3 Jan 2006 12:40:43 -0800
Lindsey Spratt wrote:
Perhaps the [NSPopUpButtonCell itemTitles] method would get you
what you want.
Thanks for the reply.
Yes, this is one component I need, the other is the actual
contentValues.
The reason being that itemTitles does not display what is in
contentValues correctly in certain conditions.
I'm trying to work around a bindings bug/oversight.
This is when using a pop up menu to set a to-one relation with a
controller.
But after an item is set, if the items in the content/contentValues
are filtered such that the
current selected item is not included, the pop up menu uses the
[object description] for the value
of the selected item, which is pretty bad looking....
So I need to get contentValues, compare it with itemTitles, and
remove or change the value of
title of the incorrect menu item...
_______________________________________________
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