Re: how to warn users of wrong system
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.