Re: Core Animation for Dummies?

2011-08-13 Thread Izak van Langevelde
On 2011-08-13, at 8:40 PM, William Squires wrote: Did you set a duration over which to animate? Also, if you return NO, won't the window NOT close after all, thus defeating the purpose of animating it disappearing? I believe you need to return YES after a synchronous operation which will

Core Animation for Dummies?

2011-08-12 Thread Izak van Langevelde
I cannot possibly get Core Animation to work, while I did play with it in the past to get some simple things animated. I reduced my problem to a simple window fade: - (BOOL)windowShouldClose:(id)window{ [self.window.animator setAlphaValue:0.0]; return NO; } The relevant view has its

Re: Core Animation for Dummies?

2011-08-12 Thread Jens Alfke
On Aug 12, 2011, at 3:19 PM, Izak van Langevelde wrote: - (BOOL)windowShouldClose:(id)window{ [self.window.animator setAlphaValue:0.0]; return NO; } The relevant view has its Core Animation Layer, as checked in X-Code, the above code is executed when I try to close a window,

Re: Core Animation for Dummies?

2011-08-12 Thread Izak van Langevelde
On 2011-08-12, at 6:40 PM, Jens Alfke wrote: On Aug 12, 2011, at 3:19 PM, Izak van Langevelde wrote: - (BOOL)windowShouldClose:(id)window{ [self.window.animator setAlphaValue:0.0]; return NO; } The relevant view has its Core Animation Layer, as checked in X-Code, the