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: Jumpy unsynchronized movement with NSViewAnimation



Hi Shamyl,

On 2007-05-31, at 23:30, Shamyl Zakariya wrote:

I'm writing a "help bubble" for providing feedback for custom NSFormatters I've written, since my formatters require fairly strict input and I want meaningul feedback to the user to explain what he'she entered wrong ). So when a user enters something the formatter doesn't approve of, a little bubble appears beneath the control with the error message from my formatter.

Wow, that looks pretty cool. Will you make the code available? :)

In the shrink-phase, you can see all the text drops about 1 pixel as the bubble resizes, and then pops back to the correct position at the end.

Are you subclassing NSAnimation? In my experience, that's really what you have to do; delegate methods don't work very well for that class. Which is a shame, because of the lack of inner classes in Objective-C.


Also, how are you setting the positions of the labels? The best way to do it would be to use the standard "sticks and springs" autosizing stuff, instead of adjusting the positions yourself.

I'd be happy to take a look at the code if you'd like.




Jonathon Mah email@hidden


_______________________________________________

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

This email sent to email@hidden
References: 
 >Jumpy unsynchronized movement with NSViewAnimation (From: Shamyl Zakariya <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.