• 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: Modal dialog without NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal dialog without NSApplication


  • Subject: Re: Modal dialog without NSApplication
  • From: brodhage <email@hidden>
  • Date: Thu, 18 Sep 2008 18:41:04 +0200

Hi,

thank you very much again for your quick answer, Jean-Daniel.

> In theorie, you can safely call NSApplicationLoad()

I allready do.

> ... create you own auto release pool

I allready do. And then I call this function (within subclass of NSWindowController):

- (void)showModalDialog
{
	NSApplication *_app;
	NSWindow *_window;

	[self showWindow:nil];
	_app = [NSApplication sharedApplication];
	_window = [self window];
	[_app runModalForWindow:_window];
}

The modal dialog (displayed this way) blocks everything - it is not possible to close the modal dialog, hit any button or something else.

For me it seems that the NSApplication:: runModalForWindow blocks all.
So what I am searching for is to display the modal dialog without NSApplication.


Any ideas?

Cheers
Ness
_______________________________________________

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: Modal dialog without NSApplication
      • From: Rob Keniger <email@hidden>
  • Prev by Date: Re: How to call functions of a C dylib on a C++ dylib
  • Next by Date: [Moderator] Re: iPhone SDK
  • Previous by thread: Re: Modal dialog without NSApplication
  • Next by thread: Re: Modal dialog without NSApplication
  • Index(es):
    • Date
    • Thread