• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa equivelant of NMInstall()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Cocoa equivelant of NMInstall()? (From: Gwynne <email@hidden>)
 >Re: Cocoa equivelant of NMInstall()? (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Cocoa equivelant of NMInstall()?
  • Next by Date: Ref counting/garbage collection in a obj-c/java bridge
  • Previous by thread: Re: Cocoa equivelant of NMInstall()?
  • Next by thread: Re: Cocoa equivelant of NMInstall()?
  • Index(es):
    • Date
    • Thread