Re: How to make whole view be drop target for small subview
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