Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the contentValues of an NSPopUpButtonCell



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.