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 PROTECTED]



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to