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

Re: How to make whole view be drop target for small subview


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

Well, to answer my own question... Seemingly you just have to call all the appropriate drag... methods on the image view, performDragOperation won't work on its own.

->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009



On Mar 23, 2008, at 1:47 AM, Ben Lachman wrote:
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

_______________________________________________

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


References: 
 >How to make whole view be drop target for small subview (From: Ben Lachman <email@hidden>)

  • Prev by Date: How to make whole view be drop target for small subview
  • Next by Date: Re: Adding commandline batch mode to Cocoa app
  • Previous by thread: How to make whole view be drop target for small subview
  • Next by thread: @class
  • Index(es):
    • Date
    • Thread