CALayer autoResizingMask
Scott Stevenson
sstevenson at mac.com
Mon May 5 20:39:01 PDT 2008
(responding to myself)
On May 5, 2008, at 8:35 PM, Scott Stevenson wrote:
> - (id<CAAction>) actionForLayer:(CALayer *)layer forKey:(NSString
> *)event
> {
> if ([event isEqualToString:@"bounds"])
> {
> // disable animation for new layers being added to container
> layer
> return (id<CAAction>)[NSNull null];
> }
BTW: Ignore the comment about "new layers being added to container
layer" -- it's code taken from another sample.
- Scott
More information about the MacOSX-dev
mailing list