Re: NSBezierPath from NSImage
Re: NSBezierPath from NSImage
- Subject: Re: NSBezierPath from NSImage
- From: "Alan Smith" <email@hidden>
- Date: Wed, 27 Dec 2006 19:40:20 -0500
What are you *really* trying to do?
Do you want a NSBezierPath because you're gonna use it for some calculation or
additional drawing?
Correct. Once I get the path I will fill it with yellow, for example.
The rectangle will come from the drawWithFrame: inView: of a
NSButtonCell subclass. I don't want to put the filling in
drawWithFrame… because that isn't what I want. If I divulge what I'm
doing I may be beaten to it, it's a fear of mine.
You don't need a path to do this - you're making things too
complicated. NSCompositeDestinationAtop and the right alpha mask will
do the work for you
It would if the image wasn't already drawn to the window. Don't tell
me to switch to CCDColoredButton because the example of a button I'm
using is part of a much bigger project.
Thanks for the help.
Peace, Alan
--
// 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