Re: NSComboBox
Re: NSComboBox
- Subject: Re: NSComboBox
- From: koko <email@hidden>
- Date: Tue, 24 Apr 2012 21:58:13 -0600
I changed to NSPopUpButton and use:
[self addItemWithTitle:@"Title"];
[[self lastItem] setImage:image];
Easy, works great.
Are you saying I could have made these calls on an instance of NSComboBox?
I do not see addItem, lastItem or setImage in NSComboBox.
How would I use 'the menu portion' of NSComboBox?
-koko
On Apr 24, 2012, at 7:35 PM, Erik Stainsby wrote:
> The menu portion of a combo box is just that an NSMenu so you ought to be able to everything you can with a regular menu item.
>
> Erik
>
>
> On 2012-04-23, at 5:53 PM, koko wrote:
>
>> I have been spelunking all afternoon with mixed results. Some say I can put an image and text in an NSComboBoxCell.
>>
>> Can this be done … put an image and text in an NSComboBoxCell?
>>
>> I can find no examples and would appreciate one if possible.
>>
>> -koko
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please 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
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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