• 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: Non-rectangular image of NSView for dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: This code is leaking...
  • Next by Date: How to Management Bytes?
  • Previous by thread: Re: Non-rectangular image of NSView for dragging
  • Next by thread: This code is leaking...
  • Index(es):
    • Date
    • Thread