Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ttwj committed Jun 8, 2012
0 parents commit 0f3ef9a
Show file tree
Hide file tree
Showing 38 changed files with 2,416 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -crlf -diff -merge
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# xcode noise
build/*
*.pbxuser
*.mode1v3
*.xcuserdatad

# old skool
.svn

# osx noise
.DS_Store
profile

Binary file added .o
Binary file not shown.
10 changes: 10 additions & 0 deletions Classes/Configuration.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#import <Foundation/Foundation.h>
@interface ClutchConfiguration : NSObject {

}

+ (BOOL) setValue:(id)value forKey:(NSString *)key;
+ (id) getValue:(NSString *)key;
+ (BOOL) configWithFile:(NSString *)filename;

@end
24 changes: 24 additions & 0 deletions Classes/Configuration.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#import "Configuration.h"

static NSMutableDictionary *configurationDictionary = nil;
static NSString *configPath = nil;

@implementation ClutchConfiguration

+ (id) getValue:(NSString *)key {
return [configurationDictionary objectForKey:key];
}

+ (BOOL) setValue:(id)value forKey:(NSString *)key {
[configurationDictionary setValue:value forKey:key];
[configurationDictionary writeToFile:configPath atomically:YES];
return YES;
}

+ (BOOL) configWithFile:(NSString *)filename {
configurationDictionary = [NSMutableDictionary dictionaryWithContentsOfFile:filename];
configPath = filename;
return TRUE;
}

@end
18 changes: 18 additions & 0 deletions Classes/bash.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// bash.h
// Clutch
//
// Created by Terence Tan on 7/6/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

@interface bash : NSObject {
NSString* script;
NSDictionary* env;
NSTask* task;
}
- (void) run;
@end
16 changes: 16 additions & 0 deletions Classes/bash.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// bash.m
// Clutch
//
// Created by Terence Tan on 7/6/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "bash.h"
@implementation bash

- (void) run {

}

@end
30 changes: 30 additions & 0 deletions Clutch-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>us.hackulo.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Clutch.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)us.hackulo.Clutch</string>
</array>
<key>task_for_pid_allow</key>
<true/>
<key>run-unsigned-code</key>
<true/>
<key>application-identifier</key>
<string>us.hackulo.Clutch</string>
<key>New item</key>
<true/>
</dict>
</plist>
Loading

0 comments on commit 0f3ef9a

Please sign in to comment.