-[NSApplication beginModalSessionForWindow:] without showing or repositioning window?
-[NSApplication beginModalSessionForWindow:] without showing or repositioning window?
- Subject: -[NSApplication beginModalSessionForWindow:] without showing or repositioning window?
- From: Nicholas Riley <email@hidden>
- Date: Tue, 8 Apr 2003 16:47:43 -0500
- Mail-followup-to: email@hidden
Hi,
I'm working on a popup window implemented as a modal panel. It needs
to appear at a certain location on the screen. I am using [NSApp
beginModalSessionForWindow: window], but the problem is:
- if I set the location after invoking beginModalSessionForWindow, then
the window flickers briefly in the center of the screen
- if I set the location before invoking it, then the panel appears in
the center of the screen
Is there any way to stop the display or repositioning of the window?
I've tried setting the content size to zero, so nothing appears, but
if I do this I can never get the window to appear again. Even if I do
this:
NSModalSession session = [NSApp beginModalSessionForWindow: window];
[window orderOut: self];
I can still see the window flicker.
Thanks,
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.