 |
 |
Menu Bar API?
|
 |
|
 |
|
Forum Regular
Join Date: Jul 2002
Location: Los Angeles, CA
Status:
Offline
|
|
Anyone know where I could get some info on how to make a menu-bar widget? (Such as iChat's, volume, etc). Thanks.
|
|
I'm a bad...motherf%#!ing DJ
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
The officially-sanctioned route is with the NSStatusItem class. (At least that's the Cocoa way. I don't know if there's a Carbon equivalent.)
If you want one like the volume control--independent of any applications and you can drag it around--you'll have to use the private SystemUIServer APIs and your users will have to use Unsanity's Menu Exra Enabler. As far as I know, this requires Cocoa too--specifically Objective-C.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 2000
Location: Boston, MA
Status:
Offline
|
|
MenuExtras are what you're looking for, I think. Check out ASM's code.
|
|
"Against stupidity, the gods themselves contend in vain" (Schiller)
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Eugh. Not only is the ASM source a horrible mess, the way they've done it - subclassing and reimplementing everything under the sun - is a totally unnecessary and confusing way of creating a menu extra. The only useful thing in there is SystemUIServer.h, which you could get yourself with class-dump, but with the lack of any other starting points it might just be the only option...
|
|
[vash:~] banana% killall killall
Terminated
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status:
Offline
|
|
Originally posted by Gul Banana:
Eugh. Not only is the ASM source a horrible mess, the way they've done it - subclassing and reimplementing everything under the sun - is a totally unnecessary and confusing way of creating a menu extra. The only useful thing in there is SystemUIServer.h, which you could get yourself with class-dump, but with the lack of any other starting points it might just be the only option...
Question: Where do you find class-dump? I see objdump, but I do not see any class-dump command.
|
|
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status:
Offline
|
|
OmniGroup, of course! Thanks for the link.
|
|
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Oct 2001
Status:
Offline
|
|
I created an app the runs from the menu bar after reading the first post in this thread. If you want to check it out send me an email and I'll send you the code.
type R 503
|
|
I be that insane n***a from the psycho ward.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|