i have a view with "Wants Core Animation Layer" checked in IB, and i'm trying to animate between the colors set by the IBActions:
the view switches colors, but it doesn't animate (EX: Preview > Preferences > General > Window Background)
coding [self animator] setFrame: is the way i make my window resize with CA, so is this not the same with [self animator] setBackgroundColors:?
Code:
- (IBAction)backgroundBlack:(id)sender
{
[[self animator] setBackgroundColors:[NSArray arrayWithObjects:[NSColor blackColor], nil]];
}
- (IBAction)backgroundWhite:(id)sender
{
[[self animator] setBackgroundColors:[NSArray arrayWithObjects:[NSColor whiteColor], nil]];
}
the view switches colors, but it doesn't animate (EX: Preview > Preferences > General > Window Background)
coding [self animator] setFrame: is the way i make my window resize with CA, so is this not the same with [self animator] setBackgroundColors:?