NSPopupButton Separators?
-
I'm probably missing something simple here, but how do you add a
separator to an NSPopupButton? I tried adding a nil item, one with an
empty string, as well as "-", but none of them worked.
Seth Willits
----------------------------------------------------------------------
President and Head Developer of Freak Software http://www.freaksw.com/
REALbasic Guru at RexExcellence http://www.resexcellence.com/realbasic
----------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
[NSMenuItem separatorItem]
On Tue, 29 Jun 2004 22:47:09 -0700, Seth Willits <seth...> wrote:>_______________________________________________
> I'm probably missing something simple here, but how do you add a
> separator to an NSPopupButton? I tried adding a nil item, one with an
> empty string, as well as "-", but none of them worked.
>
> Seth Willits
> ----------------------------------------------------------------------
> President and Head Developer of Freak Software http://www.freaksw.com/
> REALbasic Guru at RexExcellence http://www.resexcellence.com/realbasic
> ----------------------------------------------------------------------
> _______________________________________________
> cocoa-dev mailing list | <cocoa-dev...>
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
On Jun 29, 2004, at 11:42 PM, Dan Bernstein wrote:> [NSMenuItem separatorItem]
I'm afraid I'm still missing something. I don't see any way to add a
NSMenuItem to an NSPopupButton explicitly.
Seth Willits
----------------------------------------------------------------------
President and Head Developer of Freak Software http://www.freaksw.com/
REALbasic Guru at RexExcellence http://www.resexcellence.com/realbasic
----------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
Hi Seth-
Here is a snippet that is working for me...
[[_scalePopUpButton menu] addItem:[NSMenuItem separatorItem]];
Hope this helps!
John
On Jun 30, 2004, at 9:07 PM, Seth Willits wrote:> On Jun 29, 2004, at 11:42 PM, Dan Bernstein wrote:_______________________________________________
>
>> [NSMenuItem separatorItem]
>
> I'm afraid I'm still missing something. I don't see any way to add a
> NSMenuItem to an NSPopupButton explicitly.
>
>
>
> Seth Willits
> ----------------------------------------------------------------------
> President and Head Developer of Freak Software http://www.freaksw.com/
> REALbasic Guru at RexExcellence http://www.resexcellence.com/realbasic
> ----------------------------------------------------------------------
> _______________________________________________
> cocoa-dev mailing list | <cocoa-dev...>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
On Jun 30, 2004, at 8:20 PM, John Pannell wrote:> Here is a snippet that is working for me...
>
> [[_scalePopUpButton menu] addItem:[NSMenuItem separatorItem]];
Ahhh... I missed the obvious concept of getting the menu first. :)
Thanks,
Seth Willits
----------------------------------------------------------------------
President and Head Developer of Freak Software http://www.freaksw.com/
REALbasic Guru at RexExcellence http://www.resexcellence.com/realbasic
----------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


