On Fri, Jul 25, 2008 at 9:57 AM, Keith Duncan <[EMAIL PROTECTED]> wrote: >> The "need" to do this suggests a possible problem with your design. What >> are you trying to do? > > I'm refactoring a method I found online that takes an explicit NSShadow > argument. I felt that was a poor design as most of the the drawing > properties are implicit in nature; color, transform and shadow are all a > property of the current NSGraphicsContext and they should be respected in > drawing rountines that require them.
They *are* respected in drawing routines that require them. If you set a shadow, then call a drawing routine, that shadow is respected. So if your function needs to draw using a shadow, and you don't want to pass it in, all you need to do is set the shadow before you call it. Mike _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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]