Re: Cocoa equivelant of NMInstall()?
Re: Cocoa equivelant of NMInstall()?
- Subject: Re: Cocoa equivelant of NMInstall()?
- From: Gwynne <email@hidden>
- Date: Thu, 18 Mar 2004 00:30:40 -0500
On Mar 18, 2004, at 12:24 AM, Eric Schlegel wrote:
I've got an LSBackgroundOnly application that occasionally needs to
pop up an alert for the user to read. Nothing more fancy than that.
It's Cocoa, obviously... I haven't found anything yet that's really
suitable to the purpose, short of changing to LSUIElement and using
NSAlert (or NSRunAlertPanel()). NMInstall() is an ancient Carbon
routine that doesn't seem to support Unicode; do I really have to
change what should be a bg-only application to a UI element just
because it needs to pop up a notification when something critically
bad happens? What is the Cocoa equivelant of NMInstall()?
I'm not sure if there's a Cocoa API for this, but I would recommend
CoreFoundation/CFUserNotification.h. It's what NMInstall uses
internally.
Ah, this is ideal! Thanks, Eric; I knew I had to be missing something.
I can write a Cocoa wrapper around this easily if it turns out there's
definitely no provided Cocoa equivelant (I'm guessing this is what
NSApplication's -requestUserAttention method uses as well, but that
particular method provides singularly insufficient control over the
notification).
-- Gwynne, key to the Code that runs us all
Formerly known as Sailor Quasar.
Email: email@hidden
Web:
http://musicimage.plasticchicken.com/
_______________________________________________
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.