Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSShadow changes on 10.5.2?




On Feb 14, 2008, at 5:38 PM, Ricky Sharp wrote:


On Feb 14, 2008, at 5:19 PM, Jim Correia wrote:

On 10.5.2, it appears that NSShadow has changed so that the shadow draws at the offset sent to -setShadowOffset:.

In places where I was using NSShadow in the user interface for subtle visual effects, the shadow is now drawn at a different offset than on 10.4.x (and 10.5.0-1). In some cases this makes the visual effect look bad, because I had tuned the offset so that it looked good, not because of any particular fondness for the actual values.

While I can't do anything about the binaries already shipped, I'd like to fix my current source base. I still need to support (and look good) on Tiger.

Can someone share what the mapping between input offset and rendered shadow location was previous to 10.5.2?


That's definitely annoying. I make heavy use of NSShadow throughout my custom UI (which renders text anywhere from 11 pt all the way up to 48 point). My IB plug-ins allow me to set all attributes of the shadow, so I'll play around with it on my 10.5.2 system and also with 10.4.x (I have IB palettes for that OS). I'll then use Photoshop to compare.

Hopefully this is deemed a bug. It's almost like the blur value is off somehow though; the offsets seem OK to me at first glance.


Just filed bug <rdar://5744618>

My plea in the bug is to revert to the older drawing behavior ASAP (even though technically the new behavior is treating the offsets correctly). But, IMO, too many apps are out in the field relying on the old style. As with Jim, all my shadows were "tuned" to look good with the older rendering behavior. Now, all my shadows are lower and further to the right. I use shadows on shapes, bezier paths and text.

Anyhow, I also proposed to add a new API ASAP as well.  Something like:

    -(void)setNewOffsetBehavior:(BOOL)flag

This would give us the best of both worlds. Basically what was done in NSDateFormatter (setFormatterBehavior:)

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSShadow changes on 10.5.2? (From: Jim Correia <email@hidden>)
 >Re: NSShadow changes on 10.5.2? (From: Ricky Sharp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.