FROM : August Trometer
DATE : Mon Feb 25 22:44:17 2008
I just threw together a quick sample project, and I didn't have any
trouble switching menus.
Simply put:
I've got 2 menus, fooMenu and barMenu, both in IB. I have from my
controller outlets connected to both. In the controller,
[statusItem setMenu:fooMenu];
and
[statusItem setMenu:barMenu];
both work flawlessly for me.
If you want the sample code, contact me offlist, and I'll send it to
you.
-- August
On Feb 25, 2008, at 4:24 PM, Jeremy wrote:
> Hello,
>
> How can I switch menus for an NSStatusItem programatically? So if
> the user chooses to "quit" the application from the NSStatusItem I
> can switch it's menu to be another menu with launch options.
>
> Thanks,
> Jeremy
DATE : Mon Feb 25 22:44:17 2008
I just threw together a quick sample project, and I didn't have any
trouble switching menus.
Simply put:
I've got 2 menus, fooMenu and barMenu, both in IB. I have from my
controller outlets connected to both. In the controller,
[statusItem setMenu:fooMenu];
and
[statusItem setMenu:barMenu];
both work flawlessly for me.
If you want the sample code, contact me offlist, and I'll send it to
you.
-- August
On Feb 25, 2008, at 4:24 PM, Jeremy wrote:
> Hello,
>
> How can I switch menus for an NSStatusItem programatically? So if
> the user chooses to "quit" the application from the NSStatusItem I
> can switch it's menu to be another menu with launch options.
>
> Thanks,
> Jeremy
| Related mails | Author | Date |
|---|---|---|
| Jeremy | Feb 25, 22:24 | |
| I. Savant | Feb 25, 22:26 | |
| Jeremy | Feb 25, 22:30 | |
| I. Savant | Feb 25, 22:43 | |
| August Trometer | Feb 25, 22:44 | |
| Jeremy | Feb 25, 22:50 | |
| I. Savant | Feb 25, 22:58 | |
| Jeremy | Feb 25, 23:20 | |
| Jeremy | Feb 25, 23:36 | |
| I. Savant | Feb 26, 00:38 | |
| I. Savant | Feb 26, 00:40 |






Cocoa mail archive

