• 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: NSBezierPath from NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath from NSImage


  • Subject: Re: NSBezierPath from NSImage
  • From: Gregory Weston <email@hidden>
  • Date: Wed, 27 Dec 2006 16:57:34 -0500

On Dec 27, 2006, at 3:01 PM, Alan Smith wrote:

I have need of a way to make a NSBezierPath from the outline of a
NSImage. For example: Lets say I have an image with a circle in the
center. The corners will be transparent because
 well
 a circle isn't
quite square. I want to then create a NSBezierPath from that image, it
will end up as a circle path.

This can be done because Apple does it with all of its UI widgets.

I think you've made an assumption that's not well-founded. You seem to think the system is capable of drawing an appropriate focus indicator around an arbitrary control, but it'd seem much saner to me that cells know how to draw their own focus indicator and do so when told.


In fact, the NSView documentation for setFocusRingType: says: "This method only sets the desired focus ring type and does not cause the view to draw the actual focus ring. You are responsible for drawing the focus ring in your view’s drawRect: method whenever your view is made the first responder."

G


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: NSBezierPath from NSImage
      • From: "Alan Smith" <email@hidden>
  • Prev by Date: Re: Preferences binding update NSTextField and user defaults
  • Next by Date: ffmpeg and NSTask
  • Previous by thread: Re: NSBezierPath from NSImage
  • Next by thread: Re: NSBezierPath from NSImage
  • Index(es):
    • Date
    • Thread