• 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
Building a view transparent to dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building a view transparent to dragging


  • Subject: Building a view transparent to dragging
  • From: Jerome Foucher <email@hidden>
  • Date: Mon, 24 Oct 2005 09:00:39 +0200

Hi list,

I'd like to build a custom subclass of NSImageView that is transparent to dragging.

My custom view is used to draw borders around an NSImageView. It's positionnned on top of the image in the view hierarchy, and draws a PNG with alpha mask to draw the border.

The image view behind the custom view supports drag&drop, so the user can drag an image file from the Finder and drop it into the image frame.
However, the custom border view intercepts all drags....


For various reasons, I'd like to avoid having to build a class that draws the border AND the image itself.

Does anybody have a solution ?

Thanks
Jérome _______________________________________________
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


  • Follow-Ups:
    • Re: Building a view transparent to dragging
      • From: Cameron Hendrix <email@hidden>
    • Re: Building a view transparent to dragging
      • From: Cameron Hendrix <email@hidden>
    • Re: Building a view transparent to dragging
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: setFieldEditor, yes & no sort of
  • Next by Date: Core Data and Address Book API: Signal 6 (SIGABRT)
  • Previous by thread: Re: setFieldEditor, yes & no sort of
  • Next by thread: Re: Building a view transparent to dragging
  • Index(es):
    • Date
    • Thread