Re: Show alert via NSStatusicon and popup message
Re: Show alert via NSStatusicon and popup message
- Subject: Re: Show alert via NSStatusicon and popup message
- From: Kyle Sluder <email@hidden>
- Date: Sun, 24 May 2009 13:46:09 -0700
On Sun, May 24, 2009 at 3:23 AM, Mangesh Kute <email@hidden> wrote:
> 1. Is there any way to alert user via NSStatusIcon e.g. blinking
> status icon or changing image etc. ?
1. Blinking is annoying; don't do it. Changing the image is useful.
2. There's no class called NSStatusIcon. There is, however, NSStatusItem.
3. If you look at the NSStatusItem docs you'll see the documentation
for -setImage:, which I assume you had to know was there otherwise you
wouldn't be able to set an image on it in the first place.
> 2. Is there any way to show popup message ?
There are plenty of ways to show messages. Creating an alert panel is
usually sufficient. Do not attach popup windows to your status icon
to announce that the user has connected a device, or has plugged in
headphones... they can, however, be useful for things like incoming
Twitter messages, IMs, E-mail subject lines, etc. For that, you can
also just create a borderless NSWindow, but the third-party Growl
framework will do this nicely.
In short, don't make my status icons look like the disgustingly
overanimated Windows system tray.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden