Permalink
Browse files

Update MKInfoBundle/MKInfoPanel.m

Made it compatible with ARC
  • Loading branch information...
ericreber committed Aug 12, 2012
1 parent 257f0b8 commit eec07b2c671d62610014deddf6611ff2e4a72090
Showing with 3 additions and 3 deletions.
  1. +3 −3 MKInfoBundle/MKInfoPanel.m
@@ -6,6 +6,7 @@
// Copyright 2011 Steinlogic. All rights reserved.
// Permission granted to do anything, commercial/non-commercial with this file apart from removing the line/URL above
// Read my blog post at http://mk.sg/8e on how to use this code
+// Compatible with ARC by Reber Eric
// As a side note on using this code, you might consider giving some credit to me by
// 1) linking my website from your app's website
@@ -67,9 +68,8 @@ - (id)initWithCoder:(NSCoder *)aDecoder {
}
- (void)dealloc {
- [_delegate performSelector:_onFinished];
+ objc_msgSend(_delegate, _onFinished);
- [super dealloc];
}
////////////////////////////////////////////////////////////////////////
@@ -170,7 +170,7 @@ -(void)hidePanel {
////////////////////////////////////////////////////////////////////////
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
- [self performSelector:_onTouched];
+ objc_msgSend(self, _onTouched);
}
////////////////////////////////////////////////////////////////////////

0 comments on commit eec07b2

Please sign in to comment.