• 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: how to warn users of wrong system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to warn users of wrong system


  • Subject: Re: how to warn users of wrong system
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Fri, 10 Oct 2003 17:27:38 +0100

On Friday, October 10, 2003, at 05:22 pm, Alastair J. Houghton wrote:

On Friday, October 10, 2003, at 04:50 pm, matt neuburg wrote:

My question is: if NSApplicationMain hasn't been called yet, how
can I put up a dialog? NSRunAlertPanel doesn't work at that
stage... Thx - m.

Try calling NSApplicationLoad() first.

I forgot to mention that you will also need an autorelease pool, so your code should look something like:

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSApplicationLoad ();
NSRunAlertPanel (...);
[pool release];

Kind regards,

Alastair.
_______________________________________________
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.

  • Follow-Ups:
    • Re: how to warn users of wrong system
      • From: matt neuburg <email@hidden>
References: 
 >Re: how to warn users of wrong system (From: "Alastair J.Houghton" <email@hidden>)

  • Prev by Date: Using C++ classes with Objective C code
  • Next by Date: TableView drag&drop entries
  • Previous by thread: Re: how to warn users of wrong system
  • Next by thread: Re: how to warn users of wrong system
  • Index(es):
    • Date
    • Thread