• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSComboBox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSComboBox (From: koko <email@hidden>)
 >Re: NSComboBox (From: Erik Stainsby <email@hidden>)

  • Prev by Date: Re: Updating NSMenu while it's open
  • Next by Date: Canceling a NSURLConnection
  • Previous by thread: Re: NSComboBox
  • Next by thread: Losing attachments when saving rtfd
  • Index(es):
    • Date
    • Thread