• 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: CustomView that forwards mouse events to lower views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CustomView that forwards mouse events to lower views?


  • Subject: Re: CustomView that forwards mouse events to lower views?
  • From: Simone Manganelli <email@hidden>
  • Date: Mon, 27 Mar 2006 16:27:14 -0800

Awesome, I seem to have glossed over the hitTest: method, but that's exactly what I needed.

-- Simone


Il giorno 2006-03-27, alle ore 15:57, Aaron Tuller ha scritto:

Look at:

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSView.html#//apple_ref/occ/ instm/NSView/hitTest:

-aaron

At 3:20 PM -0800 3/27/06, Simone Manganelli wrote:

I just tried your suggestion -- I overrode the -(BOOL) acceptsFirstResponder method so that it always returns no. However, it doesn't seem to pass mouse events to other views... I still can't interact with the NSMovieView controller through this custom view.

It should be noted that I do still want this view to respond to certain events -- specifically, the dragging and dropping of movies. I created this custom view -- a DragProxyView -- to overcome some problems with dragging and dropping directly into an NSMovieView. But while the DragProxyView should accept dragged movies and should prevent the NSMovieView from accepting dragged movies, I want the NSMovieView to directly handle any mouse events that are supposed to interact with the movie controller. That's why I thought that my original idea -- to create a "hole" in the DragProxyView -- would be the easiest way to accomplish my goal.

Any other suggestions?

-- Simone


Il giorno 2006-03-27, alle ore 14:44, Mike Abdullah ha scritto:

I believe that if you set your custom view to not accept first responder status, then any events that it would normally handle are passed up the chain to the superview.

Somebody please correct me if I am wrong!

Mike.
_______________________________________________
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: 
 >CustomView that forwards mouse events to lower views? (From: Simone Manganelli <email@hidden>)
 >Re: CustomView that forwards mouse events to lower views? (From: Mike Abdullah <email@hidden>)
 >Re: CustomView that forwards mouse events to lower views? (From: Simone Manganelli <email@hidden>)

  • Prev by Date: Re: Draw a single bitmap multiple times into an NSView?
  • Next by Date: Test: Please Ignore
  • Previous by thread: Re: CustomView that forwards mouse events to lower views?
  • Next by thread: 1.0 divided by 10 = 0.10000000000000001?
  • Index(es):
    • Date
    • Thread