• 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
Alert dialog in agent app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Alert dialog in agent app?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Subversion and Interface Builder
  • Next by Date: Re: Subversion and Interface Builder
  • Previous by thread: Re: Subversion and Interface Builder
  • Next by thread: Re: Alert dialog in agent app?
  • Index(es):
    • Date
    • Thread