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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to