@@ -377,15 +377,13 @@ - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
377377 isVaguelyRecording = YES ;
378378 }
379379
380- // NSAffineTransform *transitionMovement = [[NSAffineTransform alloc] init];
381- NSAffineTransform *viewportMovement = [[NSAffineTransform alloc ] init ];
382- CTGradient *currRecordingGradient = [recordingGradient gradientWithAlphaComponent: 0.3 ];
380+ // NSAffineTransform *transitionMovement = [NSAffineTransform transform];
381+ NSAffineTransform *viewportMovement = [NSAffineTransform transform ];
383382 // Draw gradient when in recording mode
384383 if (isVaguelyRecording)
385384 {
386385 if (isAnimatingNow) {
387386// [transitionMovement translateXBy:(isAnimatingTowardsRecording ? -(NSWidth(cellFrame)*(1.0-xanim)) : +(NSWidth(cellFrame)*xanim)) yBy:0.0];
388- currRecordingGradient = [currRecordingGradient gradientWithAlphaComponent: alphaRecording];
389387 if (SRAnimationAxisIsY) {
390388// [viewportMovement translateXBy:0.0 yBy:(isAnimatingTowardsRecording ? -(NSHeight(cellFrame)*(xanim)) : -(NSHeight(cellFrame)*(1.0-xanim)))];
391389 [viewportMovement translateXBy: 0.0 yBy: (isAnimatingTowardsRecording ? NSHeight (cellFrame)*(xanim) : NSHeight (cellFrame)*(1.0 -xanim))];
@@ -413,11 +411,6 @@ - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
413411
414412// if (isVaguelyRecording)
415413 {
416- roundedRect = [viewportMovement transformBezierPath: [NSBezierPath bezierPathWithSRCRoundRectInRect: SRAnimationOffsetRect (cellFrame,cellFrame) radius: NSHeight (cellFrame)/2.0 ]];
417-
418- // Fill background with gradient
419- // [currRecordingGradient fillRect:cellFrame angle:90.0];
420-
421414 NSRect snapBackRect = SRAnimationOffsetRect ([self _snapbackRectForFrame: cellFrame],cellFrame);
422415// NSLog(@"snapbackrect: %@; offset: %@", NSStringFromRect([self _snapbackRectForFrame: cellFrame]), NSStringFromRect(snapBackRect));
423416 NSPoint correctedSnapBackOrigin = [viewportMovement transformPoint: snapBackRect.origin];
@@ -647,7 +640,7 @@ - (void)mouseExited:(NSEvent*)theEvent
647640- (BOOL )trackMouse : (NSEvent *)theEvent inRect : (NSRect )cellFrame ofView : (SRRecorderControl *)controlView untilMouseUp : (BOOL )flag
648641{
649642 NSEvent *currentEvent = theEvent;
650- NSPoint mouseLocation = [controlView convertPoint: [currentEvent locationInWindow ] fromView: nil ] ;
643+ NSPoint mouseLocation;
651644
652645 NSRect trackingRect = (isRecording ? [self _snapbackRectForFrame: cellFrame] : [self _removeButtonRectForFrame: cellFrame]);
653646 NSRect leftRect = cellFrame;
@@ -1192,13 +1185,11 @@ - (void)_saveKeyCombo
11921185
11931186 if (hasKeyChars) {
11941187
1195- NSMutableDictionary *mutableDefaultsValue = [defaultsValue mutableCopy ];
1188+ NSMutableDictionary *mutableDefaultsValue = [[ defaultsValue mutableCopy ] autorelease ];
11961189 [mutableDefaultsValue setObject: keyChars forKey: @" keyChars" ];
11971190 [mutableDefaultsValue setObject: keyCharsIgnoringModifiers forKey: @" keyCharsIgnoringModifiers" ];
11981191
1199- defaultsValue = [mutableDefaultsValue copy ];
1200- [mutableDefaultsValue release ];
1201-
1192+ defaultsValue = mutableDefaultsValue;
12021193 }
12031194
12041195 [values setValue: defaultsValue forKey: [self _defaultsKeyForAutosaveName: defaultsKey]];
0 commit comments