Skip to content

Commit

Permalink
I suck at memory management.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaikz committed May 23, 2011
1 parent 4ed2a63 commit 9b70164
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 17 deletions.
5 changes: 3 additions & 2 deletions Classes/LevelUnlockerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ -(void) viewDidLoad {
[background release];

UIDickBar *dickBar = [[UIDickBar alloc] initWithDickTitle:@"#LevelUnlocker" dickBadge:@"Info" actionBlock:^{
NSString *bundleVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];
NSString *version = [NSString stringWithFormat:@"haxie %@",bundleVersion];
NSString *haxieVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];
NSString *version = [NSString stringWithFormat:@"haxie %@",haxieVersion];
UIAlertView *info = [[UIAlertView alloc]
initWithTitle:version
message:@"LevelUnlocker by Ramsey\nTwitter: @iamramsey\n\nKaikz 2011\nhttp://pwncraft.net"
Expand All @@ -37,6 +37,7 @@ - (void)alertView:(UIAlertView *)info clickedButtonAtIndex:(NSInteger)buttonInde
{
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://hackulo.us/forums/index.php?/topic/103893-release-levelunlocker/" ];
[[UIApplication sharedApplication] openURL:url];
[url release];
}
}

Expand Down
10 changes: 5 additions & 5 deletions Classes/dlcViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ -(void) viewDidLoad {
self.view.backgroundColor = background;
[background release];
NSFileManager *fm = [NSFileManager defaultManager];
NSString *plutil;
plutil = @"/usr/bin/plutil";
NSString *plutil = @"/usr/bin/plutil";
if (![fm fileExistsAtPath:plutil]) {
UIAlertView *nopl = [[UIAlertView alloc] initWithTitle:@"haxie" message:@"You don't have Erica Utilities installed.\n\nhaxie will not function if you don't have it." delegate:self cancelButtonTitle:@"Ok!" otherButtonTitles:nil];
[nopl show];
[nopl release];
}

UIDickBar *dickBar = [[UIDickBar alloc] initWithDickTitle:@"#dlc.sh" dickBadge:@"Info" actionBlock:^{
NSString *bundleVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];
NSString *version = [NSString stringWithFormat:@"haxie %@",bundleVersion];
NSString *haxieVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];
NSString *version = [NSString stringWithFormat:@"haxie %@",haxieVersion];
UIAlertView *info = [[UIAlertView alloc]
initWithTitle:version
message:@"Visit\nhttp://hackulo.us for more information about dlc.sh.\n\nKaikz 2011\nhttp://pwncraft.net"
Expand All @@ -43,8 +42,9 @@ -(void) viewDidLoad {
- (void)alertView:(UIAlertView *)info clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 1)
{
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://hackulo.us/forums/index.php?/topic/64148-release-dlcsh/" ];
NSURL *url = [[NSURL alloc] initWithString: @"http://hackulo.us/forums/index.php?/topic/64148-release-dlcsh/" ];
[[UIApplication sharedApplication] openURL:url];
[url release];
}
}

Expand Down
143 changes: 133 additions & 10 deletions MainWindow.xib
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1056</int>
<string key="IBDocument.SystemVersion">10J567</string>
<string key="IBDocument.InterfaceBuilderVersion">1305</string>
<string key="IBDocument.SystemVersion">10J869</string>
<string key="IBDocument.InterfaceBuilderVersion">1306</string>
<string key="IBDocument.AppKitVersion">1038.35</string>
<string key="IBDocument.HIToolboxVersion">462.00</string>
<string key="IBDocument.HIToolboxVersion">461.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">300</string>
<string key="NS.object.0">301</string>
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -47,11 +47,10 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIWindow" id="380026005">
<reference key="NSNextResponder"/>
<nil key="NSNextResponder"/>
<int key="NSvFlags">1316</int>
<object class="NSPSMatrix" key="NSFrameMatrix"/>
<string key="NSFrameSize">{320, 480}</string>
<reference key="NSSuperview"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MSAxIDEAA</bytes>
Expand Down Expand Up @@ -220,7 +219,7 @@
<reference key="IBUINormalImage" ref="711569606"/>
</object>
</object>
<string key="NSFrame">{{0, 20}, {320, 411}}</string>
<string key="NSFrameSize">{320, 411}</string>
<reference key="IBUIBackgroundColor" ref="320936691"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
Expand Down Expand Up @@ -544,9 +543,133 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
<int key="maxID">197</int>
<int key="maxID">215</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">LevelUnlockerViewController</string>
<string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="actions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>run</string>
<string>supported</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>run</string>
<string>supported</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBActionInfo">
<string key="name">run</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">supported</string>
<string key="candidateClassName">id</string>
</object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/LevelUnlockerViewController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">dlcViewController</string>
<string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="actions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>run</string>
<string>supported</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>run</string>
<string>supported</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBActionInfo">
<string key="name">run</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">supported</string>
<string key="candidateClassName">id</string>
</object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/dlcViewController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">haxieAppDelegate</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="outlets">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>tabBarController</string>
<string>window</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>UITabBarController</string>
<string>UIWindow</string>
</object>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>tabBarController</string>
<string>window</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBToOneOutletInfo">
<string key="name">tabBarController</string>
<string key="candidateClassName">UITabBarController</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">window</string>
<string key="candidateClassName">UIWindow</string>
</object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/haxieAppDelegate.h</string>
</object>
</object>
</object>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
Expand Down Expand Up @@ -584,6 +707,6 @@
<string>{209, 80}</string>
</object>
</object>
<string key="IBCocoaTouchPluginVersion">300</string>
<string key="IBCocoaTouchPluginVersion">301</string>
</data>
</archive>

0 comments on commit 9b70164

Please sign in to comment.