• 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: Subclassing NSColorWell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Subclassing NSColorWell? (From: Mike McNamara <email@hidden>)
 >Re: Subclassing NSColorWell? (From: glenn andreas <email@hidden>)

  • Prev by Date: NSTreeController, setObjectClass and selection
  • Next by Date: Sorting a column in a Table View
  • Previous by thread: Re: Subclassing NSColorWell?
  • Next by thread: Cocoa class for queuing operations?
  • Index(es):
    • Date
    • Thread