Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Update MKInfoBundle/MKInfoPanel.m
Browse files Browse the repository at this point in the history
Made it compatible with ARC
  • Loading branch information
ericreber committed Aug 12, 2012
1 parent 257f0b8 commit eec07b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MKInfoBundle/MKInfoPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -67,9 +68,8 @@ - (id)initWithCoder:(NSCoder *)aDecoder {
}

- (void)dealloc {
[_delegate performSelector:_onFinished];
objc_msgSend(_delegate, _onFinished);

[super dealloc];
}

////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -170,7 +170,7 @@ -(void)hidePanel {
////////////////////////////////////////////////////////////////////////

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
[self performSelector:_onTouched];
objc_msgSend(self, _onTouched);
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit eec07b2

Please sign in to comment.