• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem with animator-proxy in 10.5 and NSApps -runModalForWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Partially release NSMutableData
  • Next by Date: Localizing standard alternate menu items in unsupported languages
  • Previous by thread: Re: Partially release NSMutableData
  • Next by thread: Localizing standard alternate menu items in unsupported languages
  • Index(es):
    • Date
    • Thread