Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Movable by window background AND custom NSView



Hi,

I have a Textured Window with a NSView that has some custom drawing done in drawRect.

When I click and drag outside the custom NSView
	The window moves
	(That is exactly what is needed)

When I click and drag within the custom NSView
	The window moves
	The custom NSView receives the mouseDragged messages

Since I am overriding mouseDragged (and most other mouse related messages in NSResponder) I would expect for the custom NSView to only receive the messages and since I am not calling [super mouseXXXXX]; the message should not get outside the NSView therefore the window should not move.

Clearly that is now what happens. The window moves when I click and drag within the custom view which is something we dont want to happen.

Does anyone understands what is the flow of mouse events and what to do to get around this?

Thank you,
Vance
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.