• 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
How to get NSOpenPanel on the right level/layer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get NSOpenPanel on the right level/layer?


  • Subject: How to get NSOpenPanel on the right level/layer?
  • From: Guy Umbright <email@hidden>
  • Date: Fri, 10 Dec 2004 21:11:49 -0600

I have a service that displays a window to do its thing.
For adjusting the settings this window has a sheet.
On this sheet is a custom control/cell that can initiate an
NSOpenPanel to select a path.  The NSOpenPanel
always opens *beneath* the service's window.  How
can I get it to open over it?

To get the services window to display correctly (on top of the invoking app)
I did have to add the following:


  [o_window setLevel: NSModalPanelWindowLevel];

I tried doing the same for the NSOpenPanel, but to no effect.

1) What is the right way to get the panel to display on top?

2) Should I be doing the NSOpenPanel as a sheet? I can't imagine I should as
it would then be a sheet over a sheet and it also seems a bit presumeputious
for a control to initiate a sheet.


Guy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Retrieving application name during runtime
  • Next by Date: Re: Kill other process's warning dialog
  • Previous by thread: Re: Displaying an NSArray of NSArray's in a Table view
  • Next by thread: NSMutableArrya problems
  • Index(es):
    • Date
    • Thread