Showing a modal dialog using -runModalForWindow in an effect
Showing a modal dialog using -runModalForWindow in an effect
- Subject: Showing a modal dialog using -runModalForWindow in an effect
- From: Matt Rhodes <email@hidden>
- Date: Fri, 30 May 2008 16:59:32 -0700
Hey Team.
We have the need to show a modal dialog box when our effect is first
displayed.
Is there a recommended place to do this? We're currently doing this in
-initWithApiManager
I'm trying to use -runModalForWindow for the modal dialog. I grab an
NSWindow in a .xib (.nib)
file and can display it with -runModalForWindow.
I'm getting some random crashes after showing the dialog. The problem
seems to be
that as an effect I don't really have an NSApplication to hang onto and
-runModalForWindow requires it.
I'm currently using [NSApplication sharedApplication].
Has anyone done this, or something like this? I'd appreciate any
advice or sample code regarding showing a modal dialog when
an effect starts.
Thanks.
Matt Rhodes
Zaxwerks, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden