Re: NSStatusItem in Carbon
Re: NSStatusItem in Carbon
- Subject: Re: NSStatusItem in Carbon
- From: Rosyna <email@hidden>
- Date: Tue, 11 Jul 2006 16:37:49 -0700
Dude, never call them menulets.
You don't need a bundled application. You can make the menu and all
the items programmatically. Along with the views.
Secondly, you can just make the NSStatusItem in a carbon app the same
way you would in a cocoa app... with gusto.
Just make sure to call NSApplicationLoad() before you call any cocoa
code. Also, you'd have to #include the correct headers and add the
cocoa framework to your linked frameworks, of course.
Ack, at 7/10/06, Donald Hall said:
I want to use an NSStatusItem so that I can monitor a certain
background application from the menu bar. I have to use a Carbon
application because NSWorkspace won't tell me when a background
program launches or quits. I am trying to incorporate code from the
ObserveProcessLifeCarbon and Cocoa in Carbon sample projects and the
article in MacTech from last February on "menulets".
Can anyone point me to some sample code to incorporate NSStatusItem
in Carbon? I am not having much success, and searching the archives
of this list hasn't been very helpful so far. Specifically, the
ObserveProcessLifeCarbon project on which I am basing my project
does not produce a bundled application, and I am not sure how to
make it one so I have some place to hold the Cocoa nib file
containing my menulet.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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