Re: Message dialog on Cocoa
Re: Message dialog on Cocoa
- Subject: Re: Message dialog on Cocoa
- From: Alastair Houghton <email@hidden>
- Date: Fri, 20 Jul 2007 11:49:16 +0100
On 20 Jul 2007, at 11:40, Felipe Monteiro de Carvalho wrote:
On 7/20/07, Alastair Houghton <email@hidden> wrote:
You're calling this from another thread, right?
No, I'm calling from the main thread. But consider that there is
nothing else on the software, just a call to this function (and some
calls to build the strings).
Ah, OK. So you still need to create an autorelease pool.
In order to get NSRunAlertPanel() to work, you'll probably also have
to call NSApplicationLoad() first. That *might* make it work.
Generally speaking though, displaying alerts from command line apps
(which it sounds like this is) is an evil thing to do. What is the
alert for? If it's a notification, then you might consider using
Growl (for instance).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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