• 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: transparent overlay NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transparent overlay NSWindow


  • Subject: Re: transparent overlay NSWindow
  • From: Greg Herlihy <email@hidden>
  • Date: Sun, 12 Mar 2006 08:55:28 -0800
  • Thread-topic: transparent overlay NSWindow

There is little that probably would need to be done to attain the behavior
you want. If the overlay window is completely transparent then by default it
will also be transparent to mouse events. Likewise, by default a transparent
window will refuse to become the "key" window; so it will not become the
target of keyboard events.

Otherwise, any window can be configured to be transparent to mouse events by
sending it a setIgnoresMouseEvents:YES message. And to ensure that a window
will not become the key window, there are at least a few options: create the
window without a title bar, create an NSPanel and send it a
setBecomesKeyOnlyIfNeeded:YES message, or implement a NSWindow subclass and
have its canBecomeKeyWindow method return NO.

Greg


On 3/12/06 8:20 AM, "Alexander Huber" <email@hidden> wrote:

> hi,
>
> I want to build an NSWindow subclass displaying a quartz composer
> view. This window should be transparent, fullscreen and stay 'on top'
> permanently, whereas ALL mouse and keyboard input should be forwarded
> to all other application windows, as if my application would not
> exist but be only visible. The user should be able to see and
> interact with the menubar of other applications and so on...
>
> I think I have to manipulate the responder chain to make the window
> subsystem believe my application frame would not exist, but am stuck
> here.
>
> It would be great if someone could provide some starting input
> regarding this!
>   I'm quite new to Cocoa programming, but have some knowledge of
> quartz composer and including its view to a cocoa application...
>
> Thanks a lot in advance,
> alex
>  _______________________________________________
> 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


 _______________________________________________
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

References: 
 >transparent overlay NSWindow (From: Alexander Huber <email@hidden>)

  • Prev by Date: Re: Newbie question on Methods
  • Next by Date: Re: Newbie question on Methods
  • Previous by thread: transparent overlay NSWindow
  • Next by thread: Re: transparent overlay NSWindow
  • Index(es):
    • Date
    • Thread