Converted everything to ARC.. ARC ALL THINGS!

This commit is contained in:
Curtis Hard
2022-04-20 18:06:53 +01:00
parent 533c369eb8
commit 46ba1ddcbd
66 changed files with 386 additions and 674 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
- (IJSVG *)svg
{
return [[IJSVG svgNamed:@"heart"] retain];
return [IJSVG svgNamed:@"heart"];
}
@end
+1 -1
View File
@@ -12,7 +12,7 @@
- (IJSVG *)svg
{
return [[IJSVG svgNamed:@"linecap"] retain];
return [IJSVG svgNamed:@"linecap"];
}
@end
+1 -1
View File
@@ -12,7 +12,7 @@
- (IJSVG *)svg
{
return [[IJSVG svgNamed:@"products"] retain];
return [IJSVG svgNamed:@"products"];
}
@end
+1 -1
View File
@@ -12,7 +12,7 @@
- (IJSVG *)svg
{
return [[IJSVG svgNamed:@"clipped"] retain];
return [IJSVG svgNamed:@"clipped"];
}
@end
+1 -1
View File
@@ -12,7 +12,7 @@
- (IJSVG *)svg
{
return [[IJSVG svgNamed:@"dashed"] retain];
return [IJSVG svgNamed:@"dashed"];
}
@end
+1 -1
View File
@@ -12,7 +12,7 @@
- (IJSVG *)svg
{
return [[IJSVG svgNamed:@"css"] retain];
return [IJSVG svgNamed:@"css"];
}
@end
+4 -8
View File
@@ -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;