Source/Dispenser.m
changeset 9 a59acc683080
parent 8 45c82a071aca
child 11 436cbdf56810
     1.1 --- a/Source/Dispenser.m	Wed May 28 12:47:10 2008 -0700
     1.2 +++ b/Source/Dispenser.m	Thu May 29 15:04:06 2008 -0700
     1.3 @@ -72,14 +72,12 @@
     1.4  {
     1.5      NSAssert(_bit==nil,@"Already have a currentBit");
     1.6  
     1.7 -    [CATransaction begin];
     1.8 -    [CATransaction setValue: (id)kCFBooleanTrue
     1.9 -                     forKey: kCATransactionDisableActions];
    1.10 +    BeginDisableAnimations();
    1.11      self.bit = [self createBit];
    1.12      CGPoint pos = _bit.position;
    1.13      _bit.position = CGPointMake(pos.x, pos.y+70);
    1.14      [self addSublayer: _bit];
    1.15 -    [CATransaction commit];
    1.16 +    EndDisableAnimations();
    1.17      
    1.18      _bit.position = pos;
    1.19  }