• 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
-[NSApplication beginModalSessionForWindow:] without showing or repositioning window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[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.

  • Prev by Date: HowTo: server
  • Next by Date: programming the dock icon
  • Previous by thread: Re: HowTo: server
  • Next by thread: programming the dock icon
  • Index(es):
    • Date
    • Thread