summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-21 20:24:55 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-21 20:24:55 +0000
commit0a350e09575dda4ad7c5bb21c5fe5edc659f1d59 (patch)
tree42182554528e73672a4a16a59504babd367e3be9
parent50630078a5b4891fe0b50a6cadb7514bfc8d4f11 (diff)
downloadpcsxr-0a350e09575dda4ad7c5bb21c5fe5edc659f1d59.tar.gz
OS X: Modernize the Cocoa code using Xcode 6.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91019 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--macosx/Pcsxr-QL/Pcsxr-QL-Prefix.pch4
-rw-r--r--macosx/Pcsxr.xcodeproj/project.pbxproj59
-rw-r--r--macosx/Source/CheatController.h4
-rw-r--r--macosx/Source/LaunchArg.h4
-rw-r--r--macosx/Source/LaunchArg.m4
-rw-r--r--macosx/Source/MemBadgeView.m2
-rw-r--r--macosx/Source/PcsxrHexadecimalFormatter.m4
-rw-r--r--macosx/Source/PcsxrMemCardArray.h6
-rw-r--r--macosx/Source/PcsxrMemCardArray.m2
-rw-r--r--macosx/Source/PcsxrMemCardHandler.m4
-rw-r--r--macosx/Source/PcsxrMemoryObject.h2
-rw-r--r--macosx/Source/PcsxrMemoryObject.m2
-rw-r--r--macosx/Source/PcsxrPlugin.h6
-rw-r--r--macosx/Source/PcsxrPlugin.m2
-rw-r--r--macosx/Source/PcsxrPluginHandler.m4
-rw-r--r--macosx/Source/PluginList.h2
-rw-r--r--macosx/Source/PluginList.m2
-rw-r--r--macosx/pcsxr.pch4
-rwxr-xr-xmacosx/plugins/DFNet/macsrc/SockDialog.m2
-rwxr-xr-xmacosx/plugins/PeopsXgl/macsrc/PluginWindow.h2
20 files changed, 53 insertions, 68 deletions
diff --git a/macosx/Pcsxr-QL/Pcsxr-QL-Prefix.pch b/macosx/Pcsxr-QL/Pcsxr-QL-Prefix.pch
index ca6905ed..bada5f36 100644
--- a/macosx/Pcsxr-QL/Pcsxr-QL-Prefix.pch
+++ b/macosx/Pcsxr-QL/Pcsxr-QL-Prefix.pch
@@ -10,3 +10,7 @@
#import <Cocoa/Cocoa.h>
#import "PcsxrMemoryObject.h"
#endif
+
+#ifndef NS_DESIGNATED_INITIALIZER
+#define NS_DESIGNATED_INITIALIZER
+#endif
diff --git a/macosx/Pcsxr.xcodeproj/project.pbxproj b/macosx/Pcsxr.xcodeproj/project.pbxproj
index 307a0ae3..0ded01e6 100644
--- a/macosx/Pcsxr.xcodeproj/project.pbxproj
+++ b/macosx/Pcsxr.xcodeproj/project.pbxproj
@@ -167,8 +167,6 @@
551A779917869F610052D185 /* PeopsSpuAL.psxplugin in Copy Plug-Ins */ = {isa = PBXBuildFile; fileRef = 551A771F178698C60052D185 /* PeopsSpuAL.psxplugin */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
551A779A17869F610052D185 /* PeopsXGL.psxplugin in Copy Plug-Ins */ = {isa = PBXBuildFile; fileRef = 551A774F17869C280052D185 /* PeopsXGL.psxplugin */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
551A779B17869F610052D185 /* DFNet.psxplugin in Copy Plug-Ins */ = {isa = PBXBuildFile; fileRef = 551A776D17869E430052D185 /* DFNet.psxplugin */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
- 551A779E17869FC70052D185 /* libSPUSharedCode.dylib in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 551A76E71786971B0052D185 /* libSPUSharedCode.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
- 551A77A017869FED0052D185 /* libSPUSharedCode.dylib in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 551A76E71786971B0052D185 /* libSPUSharedCode.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
551A77E71786A4DD0052D185 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 551A76AC178693C60052D185 /* Carbon.framework */; };
5525BC5E19421A760018AF2F /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 551A76AF178693D60052D185 /* CoreServices.framework */; };
5525BC5F19421A760018AF2F /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 551A76B2178693EA0052D185 /* CoreFoundation.framework */; };
@@ -189,13 +187,13 @@
553FECF818DF5A8300C7B007 /* KeyNames.plist in Resources */ = {isa = PBXBuildFile; fileRef = 553FECCC18DF5A8300C7B007 /* KeyNames.plist */; };
553FECF918DF5A8300C7B007 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 553FECCE18DF5A8300C7B007 /* Localizable.strings */; };
554FD70917C6A13E0056CF66 /* SDL2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 554FD70817C6A13E0056CF66 /* SDL2.framework */; };
- 554FD70A17C6A14B0056CF66 /* SDL2.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 554FD70817C6A13E0056CF66 /* SDL2.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
- 554FD70B17C6A1EF0056CF66 /* SDL2.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 554FD70817C6A13E0056CF66 /* SDL2.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
554FD70C17C6A1F10056CF66 /* SDL2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 554FD70817C6A13E0056CF66 /* SDL2.framework */; };
55534AF518183BFB006D6BCB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 55534AF418183BFB006D6BCB /* main.m */; };
5557769A17EBE7D60019D008 /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5557769917EBE7D60019D008 /* Media.xcassets */; };
556C37A9197C815C001A4265 /* PSXMemEnumerator.m in Sources */ = {isa = PBXBuildFile; fileRef = 556C37A8197C815C001A4265 /* PSXMemEnumerator.m */; };
556C37AB197C9C59001A4265 /* PcsxrMemoryObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 55A90228147D89380037E18F /* PcsxrMemoryObject.m */; };
+ 556C37AD197D94C8001A4265 /* SDL2.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 554FD70817C6A13E0056CF66 /* SDL2.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
+ 556C37AE197D94D6001A4265 /* libSPUSharedCode.dylib in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 551A76E71786971B0052D185 /* libSPUSharedCode.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
5581463917AABCD100862DBF /* PcsxrCheatHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5581463817AABCD100862DBF /* PcsxrCheatHandler.m */; };
559366CA12B694DF004ACC1E /* iR3000A-64.c in Sources */ = {isa = PBXBuildFile; fileRef = 559366C112B694DF004ACC1E /* iR3000A-64.c */; };
559366CB12B694DF004ACC1E /* ix86-64.c in Sources */ = {isa = PBXBuildFile; fileRef = 559366C212B694DF004ACC1E /* ix86-64.c */; };
@@ -366,40 +364,6 @@
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
- 551A779C17869FB10052D185 /* Copy Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 551A779E17869FC70052D185 /* libSPUSharedCode.dylib in Copy Frameworks */,
- 554FD70A17C6A14B0056CF66 /* SDL2.framework in Copy Frameworks */,
- );
- name = "Copy Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
- 551A779F17869FD60052D185 /* Copy Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 551A77A017869FED0052D185 /* libSPUSharedCode.dylib in Copy Frameworks */,
- );
- name = "Copy Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
- 551A77BA1786A1DC0052D185 /* Copy Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 554FD70B17C6A1EF0056CF66 /* SDL2.framework in Copy Frameworks */,
- );
- name = "Copy Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
55202EBA18E73E3E00C631AA /* Copy QuickLook Plug-In */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
@@ -422,6 +386,18 @@
name = "Copy Spotlight Plug-Ins";
runOnlyForDeploymentPostprocessing = 0;
};
+ 556C37AC197D94AF001A4265 /* Copy Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ 556C37AE197D94D6001A4265 /* libSPUSharedCode.dylib in Copy Frameworks */,
+ 556C37AD197D94C8001A4265 /* SDL2.framework in Copy Frameworks */,
+ );
+ name = "Copy Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
71AD2DF010C3573400365243 /* Copy Plug-Ins */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
@@ -1825,6 +1801,7 @@
55202EBA18E73E3E00C631AA /* Copy QuickLook Plug-In */,
5525BC58194219B80018AF2F /* Copy Spotlight Plug-Ins */,
55F41A3317EF8CFF00605DF8 /* Strip Headers */,
+ 556C37AC197D94AF001A4265 /* Copy Frameworks */,
);
buildRules = (
2BD707B705559AE300CB5D9B /* PBXBuildRule */,
@@ -1909,7 +1886,6 @@
551A76871786919F0052D185 /* Sources */,
551A76881786919F0052D185 /* Frameworks */,
551A768A1786919F0052D185 /* Resources */,
- 551A77BA1786A1DC0052D185 /* Copy Frameworks */,
);
buildRules = (
);
@@ -1944,7 +1920,6 @@
551A76DB178696BD0052D185 /* Sources */,
551A76DC178696BD0052D185 /* Frameworks */,
551A76DE178696BD0052D185 /* Resources */,
- 551A779C17869FB10052D185 /* Copy Frameworks */,
);
buildRules = (
);
@@ -1980,7 +1955,6 @@
551A7709178698C60052D185 /* Sources */,
551A7714178698C60052D185 /* Frameworks */,
551A7717178698C60052D185 /* Resources */,
- 551A779F17869FD60052D185 /* Copy Frameworks */,
);
buildRules = (
);
@@ -3559,6 +3533,7 @@
);
GCC_WARN_UNKNOWN_PRAGMAS = NO;
INFOPLIST_FILE = Info.plistvers.plist;
+ LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks @executable_path/../Frameworks";
OTHER_CFLAGS = "$(inherited)";
PRODUCT_NAME = PCSXR;
SKIP_INSTALL = NO;
@@ -3734,6 +3709,7 @@
);
GCC_WARN_UNKNOWN_PRAGMAS = NO;
INFOPLIST_FILE = Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks @executable_path/../Frameworks";
OTHER_CFLAGS = "$(inherited)";
PRODUCT_NAME = PCSXR;
SKIP_INSTALL = NO;
@@ -3758,6 +3734,7 @@
);
GCC_WARN_UNKNOWN_PRAGMAS = NO;
INFOPLIST_FILE = Info.plistvers.plist;
+ LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks @executable_path/../Frameworks";
OTHER_CFLAGS = (
"-fomit-frame-pointer",
"$(inherited)",
diff --git a/macosx/Source/CheatController.h b/macosx/Source/CheatController.h
index c56f2a68..04b00a46 100644
--- a/macosx/Source/CheatController.h
+++ b/macosx/Source/CheatController.h
@@ -12,7 +12,7 @@
@property (readwrite) uint32_t cheatAddress;
@property (readwrite) uint16_t cheatValue;
-- (instancetype)initWithAddress:(uint32_t)add value:(uint16_t)val;
+- (instancetype)initWithAddress:(uint32_t)add value:(uint16_t)val NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithCheatCode:(CheatCode *)theCheat;
@end
@@ -21,7 +21,7 @@
@property (readwrite, strong) NSString *cheatName;
@property (readwrite, getter = isEnabled) BOOL enabled;
-- (instancetype)initWithCheat:(Cheat *)theCheat;
+- (instancetype)initWithCheat:(Cheat *)theCheat NS_DESIGNATED_INITIALIZER;
@end
@interface CheatController : NSWindowController <NSWindowDelegate, NSTableViewDelegate>
diff --git a/macosx/Source/LaunchArg.h b/macosx/Source/LaunchArg.h
index 2584123d..28e62fcb 100644
--- a/macosx/Source/LaunchArg.h
+++ b/macosx/Source/LaunchArg.h
@@ -19,7 +19,7 @@ typedef enum _LaunchArgOrder {
@property (readonly, copy, nonatomic) dispatch_block_t theBlock;
@property (readonly, strong) NSString *argument;
-- (id)initWithLaunchOrder:(unsigned)order block:(dispatch_block_t)block argument:(NSString*)arg;
-- (id)initWithLaunchOrder:(unsigned)order argument:(NSString*)arg block:(dispatch_block_t)block;
+- (instancetype)initWithLaunchOrder:(unsigned)order block:(dispatch_block_t)block argument:(NSString*)arg NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithLaunchOrder:(unsigned)order argument:(NSString*)arg block:(dispatch_block_t)block;
- (void)addToDictionary:(NSMutableDictionary*)toAdd;
@end
diff --git a/macosx/Source/LaunchArg.m b/macosx/Source/LaunchArg.m
index dca47a7b..56569125 100644
--- a/macosx/Source/LaunchArg.m
+++ b/macosx/Source/LaunchArg.m
@@ -23,12 +23,12 @@
_theBlock = [theBlock copy];
}
-- (id)initWithLaunchOrder:(unsigned)order argument:(NSString*)arg block:(dispatch_block_t)block
+- (instancetype)initWithLaunchOrder:(unsigned)order argument:(NSString*)arg block:(dispatch_block_t)block
{
return [self initWithLaunchOrder:order block:block argument:arg];
}
-- (id)initWithLaunchOrder:(unsigned)order block:(dispatch_block_t)block argument:(NSString*)arg
+- (instancetype)initWithLaunchOrder:(unsigned)order block:(dispatch_block_t)block argument:(NSString*)arg
{
if (self = [super init]) {
self.launchOrder = order;
diff --git a/macosx/Source/MemBadgeView.m b/macosx/Source/MemBadgeView.m
index e15a6302..95157ea7 100644
--- a/macosx/Source/MemBadgeView.m
+++ b/macosx/Source/MemBadgeView.m
@@ -11,7 +11,7 @@
@implementation MemBadgeView
//TODO: also include the memory count in the view as well.
-- (id)initWithFrame:(NSRect)frame
+- (instancetype)initWithFrame:(NSRect)frame
{
self = [super initWithFrame:frame];
if (self) {
diff --git a/macosx/Source/PcsxrHexadecimalFormatter.m b/macosx/Source/PcsxrHexadecimalFormatter.m
index 550a7cb1..e0ea5bdf 100644
--- a/macosx/Source/PcsxrHexadecimalFormatter.m
+++ b/macosx/Source/PcsxrHexadecimalFormatter.m
@@ -22,7 +22,7 @@
self.hexFormatString = [NSString stringWithFormat:@"0x%%0%ilx", hexPadding];
}
-- (id)init
+- (instancetype)init
{
if (self = [super init]) {
#ifdef __LP64__
@@ -34,7 +34,7 @@
return self;
}
-- (id)initWithCoder:(NSCoder *)aDecoder
+- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
if (self = [super initWithCoder:aDecoder]) {
#ifdef __LP64__
diff --git a/macosx/Source/PcsxrMemCardArray.h b/macosx/Source/PcsxrMemCardArray.h
index 21b45f3c..584118b6 100644
--- a/macosx/Source/PcsxrMemCardArray.h
+++ b/macosx/Source/PcsxrMemCardArray.h
@@ -11,7 +11,7 @@
@interface PcsxrMemCardArray : NSObject
-- (id)initWithMemoryCardNumber:(int)carNum;
+- (instancetype)initWithMemoryCardNumber:(int)carNum NS_DESIGNATED_INITIALIZER;
- (void)deleteMemoryBlocksAtIndex:(int)slotnum;
- (void)compactMemory;
@@ -21,14 +21,14 @@
* @abstract Blocks that are free from any data
* @result free blocks
*/
-- (int)freeBlocks;
+@property (readonly) int freeBlocks;
/**
* @fn availableBlocks
* @abstract Blocks that have been deleted
* @result free blocks
*/
-- (int)availableBlocks;
+@property (readonly) int availableBlocks;
- (int)memorySizeAtIndex:(int)idx;
- (BOOL)moveBlockAtIndex:(int)idx toMemoryCard:(PcsxrMemCardArray*)otherCard;
- (int)indexOfFreeBlocksWithSize:(int)asize;
diff --git a/macosx/Source/PcsxrMemCardArray.m b/macosx/Source/PcsxrMemCardArray.m
index 57de81ae..dbea6bc7 100644
--- a/macosx/Source/PcsxrMemCardArray.m
+++ b/macosx/Source/PcsxrMemCardArray.m
@@ -91,7 +91,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
}
}
-- (id)initWithMemoryCardNumber:(int)carNum
+- (instancetype)initWithMemoryCardNumber:(int)carNum
{
NSParameterAssert(carNum == 1 || carNum == 2);
if (self = [super init]) {
diff --git a/macosx/Source/PcsxrMemCardHandler.m b/macosx/Source/PcsxrMemCardHandler.m
index 654ade0e..953a5f84 100644
--- a/macosx/Source/PcsxrMemCardHandler.m
+++ b/macosx/Source/PcsxrMemCardHandler.m
@@ -27,7 +27,7 @@
return utisupport;
}
-- (id)initWithWindow:(NSWindow *)window
+- (instancetype)initWithWindow:(NSWindow *)window
{
self = [super initWithWindow:window];
if (self) {
@@ -37,7 +37,7 @@
return self;
}
-- (id)init
+- (instancetype)init
{
return self = [self initWithWindowNibName:@"PcsxrMemCard"];
}
diff --git a/macosx/Source/PcsxrMemoryObject.h b/macosx/Source/PcsxrMemoryObject.h
index 539d0829..215b948b 100644
--- a/macosx/Source/PcsxrMemoryObject.h
+++ b/macosx/Source/PcsxrMemoryObject.h
@@ -26,7 +26,7 @@ typedef NS_ENUM(char, PCSXRMemFlags) {
+ (NSImage *)blankImage;
+ (PCSXRMemFlags)memFlagsFromBlockFlags:(unsigned char)blockFlags;
-- (id)initWithMcdBlock:(McdBlock *)infoBlockc startingIndex:(uint8_t)startIdx size:(uint8_t)memSize;
+- (instancetype)initWithMcdBlock:(McdBlock *)infoBlockc startingIndex:(uint8_t)startIdx size:(uint8_t)memSize NS_DESIGNATED_INITIALIZER;
@property (readonly, strong) NSString *englishName;
@property (readonly, strong) NSString *sjisName;
diff --git a/macosx/Source/PcsxrMemoryObject.m b/macosx/Source/PcsxrMemoryObject.m
index bd6db46c..db5dac65 100644
--- a/macosx/Source/PcsxrMemoryObject.m
+++ b/macosx/Source/PcsxrMemoryObject.m
@@ -136,7 +136,7 @@ static NSString *MemLabelEndLink;
return memFlagFree;
}
-- (id)initWithMcdBlock:(McdBlock *)infoBlock startingIndex:(uint8_t)startIdx size:(uint8_t)memSize
+- (instancetype)initWithMcdBlock:(McdBlock *)infoBlock startingIndex:(uint8_t)startIdx size:(uint8_t)memSize
{
if (self = [super init]) {
self.startingIndex = startIdx;
diff --git a/macosx/Source/PcsxrPlugin.h b/macosx/Source/PcsxrPlugin.h
index f2a0f854..14d6bca1 100644
--- a/macosx/Source/PcsxrPlugin.h
+++ b/macosx/Source/PcsxrPlugin.h
@@ -18,15 +18,15 @@
+ (char **)configEntriesForType:(int)type;
+ (NSArray *)pluginsPaths;
-- (id)initWithPath:(NSString *)aPath;
+- (instancetype)initWithPath:(NSString *)aPath NS_DESIGNATED_INITIALIZER;
-- (NSString *)displayVersion;
+@property (readonly, copy) NSString *displayVersion;
- (BOOL)hasAboutAs:(int)type;
- (BOOL)hasConfigureAs:(int)type;
- (long)runAs:(int)aType;
- (long)shutdownAs:(int)aType;
- (void)aboutAs:(int)type;
- (void)configureAs:(int)type;
-- (BOOL)verifyOK;
+@property (readonly) BOOL verifyOK;
@end
diff --git a/macosx/Source/PcsxrPlugin.m b/macosx/Source/PcsxrPlugin.m
index f326c040..219a88b4 100644
--- a/macosx/Source/PcsxrPlugin.m
+++ b/macosx/Source/PcsxrPlugin.m
@@ -118,7 +118,7 @@
return returnArray;
}
-- (id)initWithPath:(NSString *)aPath
+- (instancetype)initWithPath:(NSString *)aPath
{
if (!(self = [super init])) {
return nil;
diff --git a/macosx/Source/PcsxrPluginHandler.m b/macosx/Source/PcsxrPluginHandler.m
index 6e99932b..c94a8d2f 100644
--- a/macosx/Source/PcsxrPluginHandler.m
+++ b/macosx/Source/PcsxrPluginHandler.m
@@ -26,7 +26,7 @@
return utisupport;
}
-- (id)initWithWindow:(NSWindow *)window
+- (instancetype)initWithWindow:(NSWindow *)window
{
self = [super initWithWindow:window];
if (self) {
@@ -41,7 +41,7 @@
return @"AddPluginSheet";
}
-- (id)init
+- (instancetype)init
{
return self = [self initWithWindowNibName:@"AddPluginSheet"];
}
diff --git a/macosx/Source/PluginList.h b/macosx/Source/PluginList.h
index f6e0de55..0ffdf38e 100644
--- a/macosx/Source/PluginList.h
+++ b/macosx/Source/PluginList.h
@@ -18,7 +18,7 @@
- (void)refreshPlugins;
- (NSArray *)pluginsForType:(int)typeMask;
- (BOOL)hasPluginAtPath:(NSString *)path;
-- (BOOL)configured;
+@property (readonly) BOOL configured;
- (PcsxrPlugin *)activePluginForType:(int)type;
- (BOOL)setActivePlugin:(PcsxrPlugin *)plugin forType:(int)type;
diff --git a/macosx/Source/PluginList.m b/macosx/Source/PluginList.m
index 6b86bd90..cbe4cb95 100644
--- a/macosx/Source/PluginList.m
+++ b/macosx/Source/PluginList.m
@@ -35,7 +35,7 @@ const static int typeList[] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, P
return sPluginList;
}
-- (id)init
+- (instancetype)init
{
NSUInteger i;
diff --git a/macosx/pcsxr.pch b/macosx/pcsxr.pch
index 88532683..4ed29cd8 100644
--- a/macosx/pcsxr.pch
+++ b/macosx/pcsxr.pch
@@ -33,4 +33,8 @@
#import <Cocoa/Cocoa.h>
#endif
+#ifndef NS_DESIGNATED_INITIALIZER
+#define NS_DESIGNATED_INITIALIZER
+#endif
+
#endif
diff --git a/macosx/plugins/DFNet/macsrc/SockDialog.m b/macosx/plugins/DFNet/macsrc/SockDialog.m
index 01f4cdc6..2795e17f 100755
--- a/macosx/plugins/DFNet/macsrc/SockDialog.m
+++ b/macosx/plugins/DFNet/macsrc/SockDialog.m
@@ -86,7 +86,7 @@ void sockDestroyWaitDlg()
WaitCancel = 1;
}
-- (id)init
+- (instancetype)init
{
return self = [self initWithWindowNibName:@"SockDialog"];
}
diff --git a/macosx/plugins/PeopsXgl/macsrc/PluginWindow.h b/macosx/plugins/PeopsXgl/macsrc/PluginWindow.h
index c2e232cb..ad4a2b18 100755
--- a/macosx/plugins/PeopsXgl/macsrc/PluginWindow.h
+++ b/macosx/plugins/PeopsXgl/macsrc/PluginWindow.h
@@ -25,7 +25,7 @@
NSPoint initialLocation;
}
-- (BOOL) canBecomeKeyWindow; // to stop the beeping
+@property (readonly) BOOL canBecomeKeyWindow; // to stop the beeping
- (void) sendEvent:(NSEvent *)theEvent;
- (void) windowDidResize:(NSNotification*)notice;