Re: Missing Mouse Events in PDFView
Re: Missing Mouse Events in PDFView
- Subject: Re: Missing Mouse Events in PDFView
- From: Corbin Dunn <email@hidden>
- Date: Wed, 31 Oct 2007 11:37:04 -0700
Most of AppKit in fact don't use the -[mouseDragged] and -[mouseUp]
events for tracking.
Really? Outside of things like buttons, that's an unfortunate
choice, isn't it? As the "Cocoa Event-Handling Guide" points out, a
class that handles dragging in this manner is "more difficult to
extend without the subclass reimplementing all the dragging code".
You'd think that extending AppKit classes would be a fairly common
thing to want to do...
NSTableView is one such class that has to do this. It needs to take
control of mouse tracking. It is unfortunate, as it makes more
difficult to subclass, but hopefully we have the appropriate hooks for
developers to do what they want. If there isn't, then please log bugs.
--corbin
_______________________________________________
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