• 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: SetFrontProcessWithOptions and NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SetFrontProcessWithOptions and NSPanel


  • Subject: Re: SetFrontProcessWithOptions and NSPanel
  • From: Steven Degutis <email@hidden>
  • Date: Sun, 14 Feb 2010 09:42:53 -0500

You can possibly solve this problem by subclassing the HUD NSPanel and
returning YES in -canBecomeMainWindow.

-Steven

On Sun, Jan 31, 2010 at 7:00 PM, Chris Idou <email@hidden> wrote:

>
>
> I've got a NSPanel HUD that I need to be able to pop up above other
> applications, but I need to pop only the HUD, and not other windows in my
> application. So naturally I'm using:
>
> SetFrontProcessWithOptions(&psn, kSetFrontProcessFrontWindowOnly);
>
>
> However, it still pops up all my windows, and not just the HUD panel. I
> notice this doesn't happen when it is a regular window. I notice the
> documentation says that kSetFrontProcessFrontWindowOnly only works for
> non-floating windows so I've set on the window:
>
>
> [self.windowsetLevel:NSNormalWindowLevel];
> and:
> [(NSPanel *)self.window setFloatingPanel:NO];
>
> But to no avail.
>
> Can anybody help?
>
>
>
>  __________________________________________________________________________________
> Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and
> for free at PLUS7. www.tv.yahoo.com.au/plus7
> _______________________________________________
>
> 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
>



--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/
_______________________________________________

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

  • Prev by Date: Re: get the list of controls in a NSView
  • Next by Date: Dock position and size
  • Previous by thread: Re: Executing shell script with root privilege
  • Next by thread: Dock position and size
  • Index(es):
    • Date
    • Thread