Re: MenuBar icon in Cocoa?
Re: MenuBar icon in Cocoa?
- Subject: Re: MenuBar icon in Cocoa?
- From: "Clark S. Cox III" <email@hidden>
- Date: Tue, 5 Feb 2002 21:15:42 -0500
On Tuesday, February 5, 2002, at 07:21 , email@hidden wrote:
Ah, I forgot to mention that in my mail...However, what the sound prefs
panel and the internet connect applications are doing, is different from
that. The NSStatusItem method requires the application to be running...
Anyway, this was discussed as recently as 2-3 days ago on this list or
email@hiddending NSStatusItem.
It was on the omnigroup list (see
http://www.omnigroup.com/mailman/archive/macosx-
dev/2002-January/023111.html), which I wasn't subscribed to, but now I am.
:->
However, I didn't find any discussion of *why* people are taking the
trouble to reverse-engineer the menuling stuff. What is the actual
benefit, as compared to an app that uses NSStatusBar and gets rid of its
dock item? The fact that using NSStatusBar requires your app to be
running doesn't seem important; the menuling stuff loads your bundle into
the system UI server, which seems like essentially the same thing. But
there must be some benefit, or presumably Apple themselves would have
just used NSStatusBar and left it at that.
Is there a more complete discussion of these issues somewhere? Thanks!
In my mind, there is actually more of an advantage to NSStatusBar, for
the simple reason that if your item crashes, it doesn't take all of the
other Menu-lings and dock-lings with it. I have seen SystemUIServer crash
and restart because of a menuling, after which, the drawing of the right
side of the menu bar becomes erratic (The dynamic icons don't update, and
menus take a long time to pop up), and dockling menus no longer pop up. On
the other hand, if these menu-lings were implemented as an NSStatusBarItem,
crashing would only affect that individual menu-ling.
--
Clark S. Cox, III
email@hidden
http://www.whereismyhead.com/clark/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.