using 10.12 compatible API

This commit is contained in:
michael starke
2017-11-28 14:01:46 +01:00
parent 3fc656b1dd
commit 6f72301dfd

View File

@@ -25,7 +25,7 @@
return [NSSet setWithArray:@[NSStringFromSelector(@selector(countToPick)), NSStringFromSelector(@selector(pickedValue))]]; return [NSSet setWithArray:@[NSStringFromSelector(@selector(countToPick)), NSStringFromSelector(@selector(pickedValue))]];
} }
- (NSNibName)nibName { - (NSString *)nibName {
return @"PickcharView"; return @"PickcharView";
} }
@@ -37,7 +37,7 @@
return self; return self;
} }
- (instancetype)initWithNibName:(NSNibName)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if(self) { if(self) {
self.hideSource = NO; self.hideSource = NO;