Update to ARC and 10.9 deployment target.

This commit is contained in:
Damiano Galassi committed 2016-06-17 19:08:42 +02:00
1 parent e59092536b
commit ac05736fed
67 files changed
+1240 -1694

No files matched your search

+3 -13
View File
@@ -10,13 +10,11 @@
@implementation SBImageBrowserView
@synthesize pasteboardTypes = _pasteboardTypes;
- (instancetype)initWithFrame:(NSRect)frame
{
self = [super initWithFrame:frame];
if (self) {
_pasteboardTypes = [@[] retain];
_pasteboardTypes = @[];
}
return self;
}
@@ -25,7 +23,7 @@
{
self = [super initWithCoder:coder];
if (self) {
_pasteboardTypes = [@[] retain];
_pasteboardTypes = @[];
}
return self;
}
@@ -33,7 +31,7 @@
- (BOOL)validateMenuItem:(NSMenuItem *)item
{
id delegate = [self delegate];
SEL action = [item action];
SEL action = item.action;
if (action == @selector(paste:)) {
if (![self pasteboardHasSupportedType] || ![delegate respondsToSelector:@selector(_pasteToImageBrowserView:)]) {
@@ -59,12 +57,4 @@
return (bestType != nil);
}
- (void)dealloc
{
[_pasteboardTypes release];
_pasteboardTypes = nil;
[super dealloc];
}
@end