|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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. They can all have a "focus ring" around them. Unless there is an image for each widget that shows the ring. That would suck.
Also, it would be nice if the solution could work on something that has already been drawn on-screen. If the solution could actually produce a "focus ring" for any arbitrary UI widget on a window, within a specific rect, that would be awesome.
So, if anyone has any ideas, source code, or suggestions, please let me know.
-- // Quotes from yours truly ------------------------- "You don't forget, you just don't remember." "Maturity resides in the mind." "Silence is the Universe's greatest gift." "When the World realizes that religion really is unnecessary, then it shall evolve." _______________________________________________
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
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.