Re: NSPopUpButton question (newbie)
Re: NSPopUpButton question (newbie)
- Subject: Re: NSPopUpButton question (newbie)
- From: j o a r <email@hidden>
- Date: Thu, 10 Mar 2005 10:57:32 +0100
On 2005-03-10, at 10.08, Aaron Boothello wrote:
Is it possible to have more than one item in an NSPopUpButton with the
same title (NSString) ?
The documentation states:
========================================================
- (void)addItemWithTitle:(NSString *)title
Adds an item named title to the end of the menu. If an item with the
name title already exists in the menu, it’s removed, and the new one is
added.
========================================================
So it's probably not a good idea. You might manage to add an item with
a duplicate title if you access the menu directly, I don't really know,
but consider that if you do, these methods might fail / no longer do
what you expect:
- (void)removeItemWithTitle:(NSString *)title
- (void)selectItemWithTitle:(NSString *)title
- (id <NSMenuItem>)itemWithTitle:(NSString *)title
- (int)indexOfItemWithTitle:(NSString *)title
- (void)setTitle:(NSString *)aString
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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