Re: Displaying a sheet immediately after a window is opened
Re: Displaying a sheet immediately after a window is opened
- Subject: Re: Displaying a sheet immediately after a window is opened
- From: Graham Cox <email@hidden>
- Date: Fri, 17 Aug 2012 20:38:35 +1000
On 16/08/2012, at 1:02 PM, Rick Mann <email@hidden> wrote:
> After googling, I found that in -[NSDocument windowControllerDidLoadNib], I had to begin my sheet by calling performSelector on the main thread (actually I scheduled a block operation). This is kinda gross, but seems to work.
>
> Unfortunately, the result is that the main window animates opening simultaneously with the sheet animating open.
>
> I'd really like the sheet to begin its animation after the main window finishes its own. Is there a "right" place to do this?
>
Why not just put a few seconds' delay in the performSelector: call?
--Graham
_______________________________________________
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