Re: Need the Why and How of mouseDragged:
Re: Need the Why and How of mouseDragged:
- Subject: Re: Need the Why and How of mouseDragged:
- From: Alastair Houghton <email@hidden>
- Date: Thu, 13 Dec 2007 19:09:13 +0000
On 13 Dec 2007, at 18:21, Jerry Krinock <email@hidden> wrote:
Thanks again, Alastair. I sure don't have the code for the
superview. In my second instance, the superview is NSView, the
content view of an NSWindow.
[snip]
To get mouseDragged:, I must either setEnabled:NO or ^not^ invoke
super in mouseDown:.
How could setEnabled:YES cause me to not get mouseDragged: ?
If your superclass is NSView, you don't need to forward the message to
super.
As for the -setEnabled: thing, the default behaviour is probably to
track the mouse until mouse up, but only if -enabled is YES. I can't
say I've noticed this before myself, because I don't tend to forward -
mouseDown: to super where super is a plain NSView.
Kind regards,
Alastair
--
http://alastairs-place.net
_______________________________________________
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