• 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
How to make whole view be drop target for small subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to make whole view be drop target for small subview


  • Subject: How to make whole view be drop target for small subview
  • From: Ben Lachman <email@hidden>
  • Date: Sun, 23 Mar 2008 01:47:03 -0400

I have a large NSTextView that shows my current record. One of the record's attributes is an image which is displayed in a small NSImageView subview of the textview. I'd like to allow images dropped anywhere on the textview be routed into the imageview. My first thought was to override NSTextView's drag methods (performDragOperation, etc.) and if the pasteboard type could be filtered to one of the imageview's registered drag types just call performDragOperation: on the imageview in my customized textview's performDragOperation. This doesn't seem to work. Anyone know a good way to do something like this?

Thanks,
->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009



_______________________________________________

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


  • Follow-Ups:
    • Re: How to make whole view be drop target for small subview
      • From: Ben Lachman <email@hidden>
  • Prev by Date: Re: Adding commandline batch mode to Cocoa app
  • Next by Date: Re: How to make whole view be drop target for small subview
  • Previous by thread: Re: CoreAnimation Memory Use/Eating Memory
  • Next by thread: Re: How to make whole view be drop target for small subview
  • Index(es):
    • Date
    • Thread