Permalink
Browse files

Change _newLayer to _insertLayerIntoScrollLayer to appease the Clang …

…Static Analyzer.
  • Loading branch information...
1 parent 86b0e91 commit f10bd6634c5d098952f057092542351887ec84f0 @mattball committed Nov 23, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 MBCoverFlowView.m
View
@@ -66,7 +66,7 @@ of this software and associated documentation files (the "Software"), to deal
@interface MBCoverFlowView ()
- (float)_positionOfSelectedItem;
-- (CALayer *)_newLayer;
+- (CALayer *)_insertLayerInScrollLayer;
- (void)_scrollerChange:(MBCoverFlowScroller *)scroller;
- (void)_refreshLayer:(CALayer *)layer;
- (void)_loadImageForLayer:(CALayer *)layer;
@@ -409,7 +409,7 @@ - (void)setContent:(NSArray *)newContents
[itemsToAdd removeObjectsInArray:oldContent];
for (NSObject *object in itemsToAdd) {
- CALayer *layer = [self _newLayer];
+ CALayer *layer = [self _insertLayerInScrollLayer];
[layer setValue:object forKey:@"representedObject"];
if (self.imageKeyPath) {
[object addObserver:self forKeyPath:self.imageKeyPath options:0 context:&MBCoverFlowViewImagePathContext];
@@ -667,7 +667,7 @@ - (NSRect)rectForItemAtIndex:(NSInteger)index
#pragma mark -
#pragma mark Private Methods
-- (CALayer *)_newLayer
+- (CALayer *)_insertLayerInScrollLayer
{
/* this enables a perspective transform. The value of zDistance
affects the sharpness of the transform */

0 comments on commit f10bd66

Please sign in to comment.