Hi everyone,

Can someone point out what is the standard way to chain animations? I'm trying 
to animate several UIViews (one after the other) that are container into an 
NSMutableArray, and at this point I'm just doing something like the following:

- (void) insert {
        
        if ([array count] > 0) {
                                
                AnimatedObject *object = [array lastObject];
                
                // register as an observer
                [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(insert) name:@"ObjectAdded" object:object];
                
                [scrollView addAnimatedObject:object];
                [array removeLastObject];
        }
}

So the added object posts a notification to the default center when it's done 
with the animation. This seems to work, but there should be an easier way to 
accomplish the same thing. Any suggestions? Thank you,

aa

_______________________________________________

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 arch...@mail-archive.com

Reply via email to