Re: Non-rectangular image of NSView for dragging
Re: Non-rectangular image of NSView for dragging
- Subject: Re: Non-rectangular image of NSView for dragging
- From: Sivakumar Kandappan <email@hidden>
- Date: Sun, 19 Jun 2011 11:13:44 -0400
- Thread-topic: Non-rectangular image of NSView for dragging
I assume you are using the draw rect function. The following is my
opinion and my way of doing
When the user selects the objects; create path from the non rectangular
image with respect to any frame of reference like frame or bounds of the
shape.
You can use path to clip the region by using mask or create a CGImage with
that.
When the user moves calculate how much is your frame of reference is moved
from the original location and update the CGImage or the mask location.
Cheers
Sivakumar
On 6/19/11 9:59 AM, "email@hidden"
<email@hidden> wrote:
>Non-rectangular image of NSView for dragging
_______________________________________________
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