Permalink
Browse files

iOS: convert all obj-c source code to ARC

  • Loading branch information...
KentuckyCompass committed Jan 1, 2018
1 parent 4a119be commit 152dc2192f377f63056e79545822d074c83567bb
Showing with 7 additions and 3 deletions.
  1. +5 −0 CMakeLists.txt
  2. +2 −2 ios/iCade/iCadeReaderView.h
  3. +0 −1 ios/iCade/iCadeReaderView.m
View
@@ -692,6 +692,11 @@ elseif(IOS)
set_source_files_properties(ios/AppDelegate.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/ViewController.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/iOSCoreAudio.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/PPSSPPUIApplication.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/iCade/iCadeReaderView.m PROPERTIES COMPILE_FLAGS -fobjc-arc)
set_source_files_properties(ios/main.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
set(TargetBin PPSSPP)
elseif(USING_QT_UI)
@@ -50,7 +50,7 @@
@interface iCadeReaderView : UIView<UIKeyInput> {
UIView *inputView;
iCadeState _iCadeState;
id<iCadeEventDelegate> _delegate;
id<iCadeEventDelegate> __weak _delegate;
struct {
bool stateChanged:1;
@@ -60,7 +60,7 @@
}
@property (nonatomic, assign) iCadeState iCadeState;
@property (nonatomic, assign) id<iCadeEventDelegate> delegate;
@property (nonatomic, weak) id<iCadeEventDelegate> delegate;
@property (nonatomic, assign) BOOL active;
@end
@@ -49,7 +49,6 @@ - (id)initWithFrame:(CGRect)frame {
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidEnterBackgroundNotification object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
[super dealloc];
}
- (void)didEnterBackground {

0 comments on commit 152dc21

Please sign in to comment.