• 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: disabling click-through in transparent views (seeking comments)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disabling click-through in transparent views (seeking comments)


  • Subject: Re: disabling click-through in transparent views (seeking comments)
  • From: m <email@hidden>
  • Date: Thu, 15 May 2003 16:20:00 +0100

Have a look at the documentation for the hitTest: method of NSView. To wit:

"This method is used primarily by an NSWindow to determine which NSView should receive a mouse-down event. You'd rarely need invoke this method, but you might want to override it to have a view object hide mouse-down events from its subviews."

_murat



On Thursday, May 15, 2003, at 04:04 PM, Ujwal S. Sathyam wrote:

Hi,

I don't really have a comment, but could you elaborate a little on what you did in sendEvent of the window subclass? I did not understand the bit about the "child window". I am having the click-through problem and would like to test your solution.

Thanks,

Ujwal

On 2003-05-14 17:37:09 -0700 email@hidden wrote:

Message: 12
Date: Wed, 14 May 2003 15:34:57 -0700
From: Josh Anon <email@hidden>
Subject: disabling click-through in transparent views (seeking comments)
To: email@hidden
This question seems to come up every few months, and I think I've found a solution, although not one I like.
Specifically, I have a transparent view and I want it to get events. For reasons related to what I'm doing in the view, setting it to have a low alpha just gets too problematic. In this case, my view sits in a child window which is attached to a different window with some real content. My solution was to subclass the parent window and override sendEvent: so that it sends the event to each child window.
It works, but it seems like there should be a flag somewhere you could set to disable click-through... Comments?
Josh
---
Josh Anon
Studio Tools Intern, Pixar Animation Studios
email@hidden
_______________________________________________
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.
_______________________________________________
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: RE: Best way to create custom DMG's
  • Next by Date: Re: NSPopUpButton failure after adding file names
  • Previous by thread: Re: disabling click-through in transparent views (seeking comments)
  • Next by thread: Re: disabling click-through in transparent views (seeking comments)
  • Index(es):
    • Date
    • Thread