summaryrefslogtreecommitdiff
path: root/macosx/PcsxrMemoryObject.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-09-10 18:18:15 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-09-10 18:18:15 +0000
commita3ac4842bd5c7058b1363f7d3307f61724fc7178 (patch)
tree0e71322d034432a925cbdab2f5e92bc891d3efde /macosx/PcsxrMemoryObject.m
parentaca9c8411f7b86b1ee685965c70e7be682a9a4d0 (diff)
downloadpcsxr-a3ac4842bd5c7058b1363f7d3307f61724fc7178.tar.gz
Remove 32-bit support on OS X.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87114 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrMemoryObject.m')
-rwxr-xr-xmacosx/PcsxrMemoryObject.m29
1 files changed, 5 insertions, 24 deletions
diff --git a/macosx/PcsxrMemoryObject.m b/macosx/PcsxrMemoryObject.m
index 5e37a6e6..12b63176 100755
--- a/macosx/PcsxrMemoryObject.m
+++ b/macosx/PcsxrMemoryObject.m
@@ -13,20 +13,19 @@
#import <AppKit/NSImage.h>
#import <AppKit/NSBezierPath.h>
#import <AppKit/NSAttributedString.h>
-#import "ARCBridge.h"
NSString *const memoryAnimateTimerKey = @"PCSXR Memory Card Image Animate";
@interface PcsxrMemoryObject ()
-@property (readwrite, arcstrong) NSString *englishName;
-@property (readwrite, arcstrong) NSString *sjisName;
-@property (readwrite, arcstrong) NSString *memName;
-@property (readwrite, arcstrong) NSString *memID;
+@property (readwrite, strong) NSString *englishName;
+@property (readwrite, strong) NSString *sjisName;
+@property (readwrite, strong) NSString *memName;
+@property (readwrite, strong) NSString *memID;
@property (readwrite) uint8_t startingIndex;
@property (readwrite) uint8_t blockSize;
@property (readwrite, nonatomic) NSInteger memImageIndex;
-@property (arcstrong) NSArray *memImages;
+@property (strong) NSArray *memImages;
@property (readwrite) PCSXRMemFlags flagNameIndex;
@end
@@ -54,14 +53,11 @@ NSString *const memoryAnimateTimerKey = @"PCSXR Memory Card Image Animate";
}
memImage = [[NSImage alloc] init];
[memImage addRepresentation:imageRep];
- RELEASEOBJ(imageRep);
[memImage setSize:NSMakeSize(32, 32)];
}
[imagesArray addObject:memImage];
- RELEASEOBJ(memImage);
}
NSArray *retArray = [NSArray arrayWithArray:imagesArray];
- RELEASEOBJ(imagesArray);
return retArray;
}
@@ -255,28 +251,23 @@ NS_INLINE void SetupAttrStr(NSMutableAttributedString *mutStr, NSColor *txtclr)
NSMutableAttributedString *tmpStr = [[NSMutableAttributedString alloc] initWithString:MemLabelFree];
SetupAttrStr(tmpStr, [NSColor greenColor]);
attribMemLabelFree = [tmpStr copy];
- RELEASEOBJ(tmpStr);
#ifdef DEBUG
tmpStr = [[NSMutableAttributedString alloc] initWithString:MemLabelEndLink];
SetupAttrStr(tmpStr, [NSColor blueColor]);
attribMemLabelEndLink = [tmpStr copy];
- RELEASEOBJ(tmpStr);
tmpStr = [[NSMutableAttributedString alloc] initWithString:MemLabelLink];
SetupAttrStr(tmpStr, [NSColor blueColor]);
attribMemLabelLink = [tmpStr copy];
- RELEASEOBJ(tmpStr);
tmpStr = [[NSMutableAttributedString alloc] initWithString:MemLabelUsed];
SetupAttrStr(tmpStr, [NSColor controlTextColor]);
attribMemLabelUsed = [tmpStr copy];
- RELEASEOBJ(tmpStr);
#else
tmpStr = [[NSMutableAttributedString alloc] initWithString:@"Multi-save"];
SetupAttrStr(tmpStr, [NSColor blueColor]);
attribMemLabelEndLink = [tmpStr copy];
- RELEASEOBJ(tmpStr);
//tmpStr = [[NSMutableAttributedString alloc] initWithString:@"Multi-save"];
//SetupAttrStr(tmpStr, [NSColor blueColor]);
@@ -291,7 +282,6 @@ NS_INLINE void SetupAttrStr(NSMutableAttributedString *mutStr, NSColor *txtclr)
tmpStr = [[NSMutableAttributedString alloc] initWithString:MemLabelDeleted];
SetupAttrStr(tmpStr, [NSColor redColor]);
attribMemLabelDeleted = [tmpStr copy];
- RELEASEOBJ(tmpStr);
});
switch (flagNameIndex) {
@@ -333,15 +323,6 @@ NS_INLINE void SetupAttrStr(NSMutableAttributedString *mutStr, NSColor *txtclr)
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
-#if !__has_feature(objc_arc)
- self.englishName = nil;
- self.sjisName = nil;
- self.memName = nil;
- self.memID = nil;
- self.memImages = nil;
-
- [super dealloc];
-#endif
}
- (NSString *)description