Re: Displaying a sheet immediately after a window is opened

2012-08-20 Thread Dmitriy Balakirev
I use undocumented NSWindowDidOrderOnScreenAndFinishAnimatingNotification. Be careful when handling it. It seems firing more then one time, and sometimes from thread other then main. 16.08.2012, в 7:02, Rick Mann написал(а): > After googling, I found that in -[NSDocument windowControllerDidLoa

Re: Displaying a sheet immediately after a window is opened

2012-08-17 Thread Markus Spoettl
On 8/16/12 5:02 AM, Rick Mann 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

Re: Displaying a sheet immediately after a window is opened

2012-08-17 Thread Rick Mann
On Aug 17, 2012, at 3:38 , Graham Cox wrote: > > On 16/08/2012, at 1:02 PM, Rick Mann 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). T

Re: Displaying a sheet immediately after a window is opened

2012-08-17 Thread Graham Cox
On 16/08/2012, at 1:02 PM, Rick Mann 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

Re: Displaying a sheet immediately after a window is opened

2012-08-17 Thread Rick Mann
It's the default behavior. -- Rick On Aug 17, 2012, at 2:03, Mike Abdullah wrote: > > On 17 Aug 2012, at 00:11, Rick Mann wrote: > >> I'm surprised this is so hard to do. > > I'd argue that rather than a pair of animations, what you better is to open > the window non-animated, and then a

Re: Displaying a sheet immediately after a window is opened

2012-08-17 Thread Mike Abdullah
On 17 Aug 2012, at 00:11, Rick Mann wrote: > I'm surprised this is so hard to do. I'd argue that rather than a pair of animations, what you better is to open the window non-animated, and then animate the sheet over it. Have you looked into that? _

Re: Displaying a sheet immediately after a window is opened

2012-08-16 Thread Rick Mann
I'm surprised this is so hard to do. -- Rick On Aug 16, 2012, at 16:10 , Laurent Daudelin wrote: > On Aug 16, 2012, at 15:51, Rick Mann wrote: > >> On Aug 16, 2012, at 7:08 , Dmitriy Balakirev >> wrote: >> >>> I use undocumented NSWindowDidOrderOnScreenAndFinishAnimatingNotification. >>

Re: Displaying a sheet immediately after a window is opened

2012-08-16 Thread Laurent Daudelin
On Aug 16, 2012, at 15:51, Rick Mann wrote: > On Aug 16, 2012, at 7:08 , Dmitriy Balakirev > wrote: > >> I use undocumented NSWindowDidOrderOnScreenAndFinishAnimatingNotification. >> Be careful when handling it. It seems firing more then one time, and >> sometimes from thread other then main.

Re: Displaying a sheet immediately after a window is opened

2012-08-16 Thread Rick Mann
On Aug 16, 2012, at 7:08 , Dmitriy Balakirev wrote: > I use undocumented NSWindowDidOrderOnScreenAndFinishAnimatingNotification. > Be careful when handling it. It seems firing more then one time, and > sometimes from thread other then main. Yeah, that was suggested to me by someone else, and

Displaying a sheet immediately after a window is opened

2012-08-15 Thread Rick Mann
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 si