From de50d760fd03a7eed9a614a3d4a701f2097c88d9 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Fri, 13 Sep 2013 21:31:56 +0000 Subject: Changing a few Objective C classes to have their ivars hidden. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87167 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrMemCardController.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'macosx/PcsxrMemCardController.m') diff --git a/macosx/PcsxrMemCardController.m b/macosx/PcsxrMemCardController.m index 7ad50914..b27f5826 100755 --- a/macosx/PcsxrMemCardController.m +++ b/macosx/PcsxrMemCardController.m @@ -18,6 +18,7 @@ @interface PcsxrMemCardController () @property (readwrite, strong) PcsxrMemCardArray *memCard1Array; @property (readwrite, strong) PcsxrMemCardArray *memCard2Array; +@property (strong) NSTimer *imageAnimateTimer; @end @implementation PcsxrMemCardController @@ -83,8 +84,8 @@ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(memoryCardDidChangeNotification:) name:memChangeNotifier object:nil]; - imageAnimateTimer = [[NSTimer alloc] initWithFireDate:[NSDate date] interval:3.0/10.0 target:self selector:@selector(animateMemCards:) userInfo:nil repeats:YES]; - [[NSRunLoop mainRunLoop] addTimer:imageAnimateTimer forMode:NSRunLoopCommonModes]; + self.imageAnimateTimer = [[NSTimer alloc] initWithFireDate:[NSDate date] interval:3.0/10.0 target:self selector:@selector(animateMemCards:) userInfo:nil repeats:YES]; + [[NSRunLoop mainRunLoop] addTimer:self.imageAnimateTimer forMode:NSRunLoopCommonModes]; } - (void)animateMemCards:(NSTimer*)theTimer @@ -228,7 +229,7 @@ - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; - [imageAnimateTimer invalidate]; + [self.imageAnimateTimer invalidate]; } @end -- cgit v1.2.3