Re: Retrieving the current -[NSShadow set]
Re: Retrieving the current -[NSShadow set]
- Subject: Re: Retrieving the current -[NSShadow set]
- From: David Duncan <email@hidden>
- Date: Fri, 25 Jul 2008 16:07:30 -0700
On Jul 25, 2008, at 3:59 PM, Keith Duncan wrote:
That's actually the original question. How does one do this?
You don't. If I were doing this, I would simply pass the shadow
parameters into the function (and create conveniences for myself if I
were so inclined).
The ability for NSShadow to provide you with its shadow parameters is
in part due to its implementation, as it needs to retain these values
in order to implement -set. From the Quartz side of things, -set
effectively equates to a call to CGContextSetShadowWithColor() which
sets all of these parameters at once. But there is no method to
retrieve these parameters from either the NSGraphicsContext or
underlying CGContextRef.
--
David Duncan
Apple DTS Animation and Printing
email@hidden
_______________________________________________
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