NSViewAnimation vs Distributed Notification: Bug?
NSViewAnimation vs Distributed Notification: Bug?
- Subject: NSViewAnimation vs Distributed Notification: Bug?
- From: Iceberg-Dev <email@hidden>
- Date: Sun, 28 Feb 2010 00:24:17 +0100
[Q] Is there a known bug in NSViewAnimation on Mac OS X 10.4 when it
comes to Distributed Notifications?
Scenario:
---------
If I animate a window resizing through a NSViewAnimation, some
Distributed Notifications are only taken into account after I click
in the window resized through a NSViewAnimation.
If I animate the window with setFrame:dispplay:animate:, the problem
does not occur.
------->8------->8------->8------->8------->8------->8------->8-------
// This does not work correctly
tAnimationDictionary=[NSDictionary
dictionaryWithObjectsAndKeys:IBwindow_,NSViewAnimationTargetKey,
[NSValue valueWithRect: tNewWindowFrame],
NSViewAnimationEndFrameKey,
nil];
tAnimation=[[NSViewAnimation alloc] initWithViewAnimations: [NSArray
arrayWithObject:tAnimationDictionary]];
if (tAnimation!=nil)
{
[tAnimation setAnimationBlockingMode:NSAnimationBlocking];
[tAnimation setDuration: 0.15f];
[tAnimation startAnimation];
[tAnimation autorelease];
}
// This works fine
[IBwindow_ setFrame:tNewWindowFrame display:YES animate:YES];
_______________________________________________
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:
This email sent to email@hidden