We are now ready to implement the program code that customizes the full screen animation.
The first thing we can do is implement the methods that return the list of windows to be animated. It's important to understand that it is acceptable to animate more than one window into full screen, which is why the methods return an
NSArray
ofNSWindow
objects. Having said that, in our iSight Recorder App, we will only be animating a single window so we simply return anNSArray
that contains the single window object.// Return the list of windows in the custom animation for // entering full screen - (NSArray *)customWindowsToEnterFullScreenForWindow: (NSWindow *)a_window { // Just our window return [NSArray arrayWithObjects:a_window, nil]; } // Return the list of windows in the custom animation for // exiting full screen - (NSArray *)customWindowsToExitFullScreenForWindow: (NSWindow *)a_window { // Just our window return [NSArray...