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 (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/erik.stainsby%40roaringsky.ca
>> 
>> This email sent to erik.stain...@roaringsky.ca
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net
> 
> This email sent to k...@highrolls.net

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to