Converted everything to ARC.. ARC ALL THINGS!
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
- (IJSVG *)svg
|
||||
{
|
||||
return [[IJSVG svgNamed:@"heart"] retain];
|
||||
return [IJSVG svgNamed:@"heart"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
- (IJSVG *)svg
|
||||
{
|
||||
return [[IJSVG svgNamed:@"linecap"] retain];
|
||||
return [IJSVG svgNamed:@"linecap"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
- (IJSVG *)svg
|
||||
{
|
||||
return [[IJSVG svgNamed:@"products"] retain];
|
||||
return [IJSVG svgNamed:@"products"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
- (IJSVG *)svg
|
||||
{
|
||||
return [[IJSVG svgNamed:@"clipped"] retain];
|
||||
return [IJSVG svgNamed:@"clipped"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
- (IJSVG *)svg
|
||||
{
|
||||
return [[IJSVG svgNamed:@"dashed"] retain];
|
||||
return [IJSVG svgNamed:@"dashed"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
- (IJSVG *)svg
|
||||
{
|
||||
return [[IJSVG svgNamed:@"css"] retain];
|
||||
return [IJSVG svgNamed:@"css"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -10,19 +10,15 @@
|
||||
|
||||
@implementation SVGView
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[svg release], svg = nil;
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (id)initWithFrame:(NSRect)frameRect
|
||||
{
|
||||
if( ( self = [super initWithFrame:frameRect] ) != nil ) {
|
||||
svg = [self svg].retain;
|
||||
svg = [self svg];
|
||||
svg.renderQuality = kIJSVGRenderQualityFullResolution;
|
||||
|
||||
__weak SVGView* weakSelf = self;
|
||||
svg.renderingBackingScaleHelper = ^{
|
||||
return self.window.backingScaleFactor;
|
||||
return weakSelf.window.backingScaleFactor;
|
||||
};
|
||||
}
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user