Problem with animator-proxy in 10.5 and NSApps -runModalForWindow
Problem with animator-proxy in 10.5 and NSApps -runModalForWindow
- Subject: Problem with animator-proxy in 10.5 and NSApps -runModalForWindow
- From: Markus Müller <email@hidden>
- Date: Wed, 04 Aug 2010 13:57:38 +0200
Hi,
I´ve a problem with the animator proxy under 10.5
Code:
-(IBAction)doModal:(id)sender
{
NSRect windowFrame = [ window frame ];
windowFrame = NSInsetRect(windowFrame, -100.0, -100.0 );
[ [ window animator ] setFrame:windowFrame display:YES ];
// animation wouldn´t start in 10.5 if followed by runModalForWindow
[ NSApp runModalForWindow:window ];
}
No problems with 10.6. Snow Leopards release notes say:
"On 10.5, NSView and NSWindow property animations that were scheduled
through the view’s/window’s “animator”, and that were evaluated by
AppKit (rather than being delegated to Core Animation for threaded
asynchronous evaluation), were scheduled for updating in the
NSDefaultRunLoopMode.
On 10.6, such animations are now evaluated in NSRunLoopCommonModes."
Is there a similar way to run a modal window without blocking an
animation in 10.5?
Thanks for your time, Markus
_______________________________________________
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