Alert dialog in agent app?
Alert dialog in agent app?
- Subject: Alert dialog in agent app?
- From: Gabriel Zachmann <email@hidden>
- Date: Fri, 28 Aug 2009 01:03:52 +0200
My Cocoa application has the plist flag "application is background
only" set.
(I believe, this is the former LSUIElement property.)
Now I would like to display an alert dialog.
Unfortunately, this does not work; it even seems it makes the
application hang.
The code for the alert box looks like this:
// NSAlert *alert = [NSAlert alertWithMessageText: @"Bla!"
// defaultButton: @"OK" alternateButton: nil otherButton: nil
// informativeTextWithFormat: @"bla." ];
// [alert runModal];
I also tried NSRunAlertPanel() to no avail.
When I switch off the property "application is background only", then
everything is fine.
Any suggestions, how I can still display alert or informative dialogs
in my background-only app will be highly appreciated.
Best regards,
Gabriel.
____________________________________________________________
Eigentlich bin ich ganz anders, nur komme ich so selten dazu.
( Ödön von Horváth )
____________________________________________________________
http://zach.in.tu-clausthal.de
____________________________________________________________
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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