Re: Subclassing NSColorWell?
Re: Subclassing NSColorWell?
- Subject: Re: Subclassing NSColorWell?
- From: Mike McNamara <email@hidden>
- Date: Fri, 15 Jul 2005 18:05:32 -0600
At 4:59 PM -0500 7/14/05, glenn andreas wrote:
I'd first try to override
dragImage:at:offset:event:pasteboard:source:slideBack in your
NSColorWell subclass (and then append your types & data to the
pasteboard), but if it goes through
dragColor:colorWithEvent:fromView: instead, I'm not sure where to
try to intercept it.
Thank you very much for the advice! It was spot on. I have now
overridden dragImage, appending my types and data to the dragging
pasteboard and everything now appears to be working as I had hoped.
In fact there's no need to override the mouseDragged or mouseDown
methods in my subclass of NSColorWell at all.
The cocoa-dev list is a fantastic resource.
Thanks again for your help!
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