Re: Building a view transparent to dragging
Re: Building a view transparent to dragging
- Subject: Re: Building a view transparent to dragging
- From: Jerome Foucher <email@hidden>
- Date: Mon, 24 Oct 2005 15:19:25 +0200
Le 24 oct. 05 à 15:11, Cameron Hendrix a écrit :
Although drawing both image and border in one class would be a more
efficient use of system resources, I think I've done something
similar to what you're talking about, although not with NSImageViews.
The image view behind the "border"-view supports zooming, moving,
rotating (and more), and I want to avoid having to redraw the border
everytime I change anything to the image. That's why I would prefer
having two seperate views, one for the border, and one for image.
If I understand you correctly, what you want to do is to be able to
drag and drop an image without the NSImageView on top grabbing it.
One thing you might be able to try is the setEditable:NO method on
your imageview that draws the border. Then, it wouldn't be able to
take the image that you drag to it, and the image may pass on to
the ImageView below.
I already call [view setEditable:NO], so that trick doesn't seem to
work for me.
So I guess I will have to embed the image into the "border"-view....
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