Browse files

Merge branch 'master' of git://github.com/dustin/gitnub into dustin/m…

…aster
  • Loading branch information...
2 parents 88e9717 + c9db2c1 commit fc10de3ca1dc09f64d5f1522026599786e214a3e @Caged committed Mar 12, 2008
Showing with 16 additions and 9 deletions.
  1. +2 −1 .gitignore
  2. +10 −8 nub/nub.m
  3. +4 −0 nub/nub.xcodeproj/project.pbxproj
View
3 .gitignore
@@ -5,4 +5,5 @@ nub/build/*
.DS_Store
*.pbxuser
*.mode1v3
-.rake_tasks
+*.mode2v3
+.rake_tasks
View
18 nub/nub.m
@@ -1,15 +1,17 @@
-#import <Foundation/Foundation.h>
+#import <Cocoa/Cocoa.h>
int main (int argc, const char * argv[]) {
+ char buf[PATH_MAX];
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
+
// NSArray *myArgs = [[NSProcessInfo processInfo] arguments];
- // NSLog(@"%@", myArgs);
-
- NSTask *task = [[NSTask alloc] init];
- [task setLaunchPath:@"/Applications/GitNub.app/Contents/MacOS/GitNub"];
- [task launch];
-
+ // NSLog(@"%@", myArgs);
+
+ NSString *path=[[NSString alloc] initWithCString:getcwd(buf, sizeof(buf))];
+
+ [[NSWorkspace sharedWorkspace] openFile:path withApplication:@"GitNub"];
+
+ [path release];
[pool drain];
return 0;
}
View
4 nub/nub.xcodeproj/project.pbxproj
@@ -10,6 +10,7 @@
8DD76F9A0486AA7600D96B5E /* nub.m in Sources */ = {isa = PBXBuildFile; fileRef = 08FB7796FE84155DC02AAC07 /* nub.m */; settings = {ATTRIBUTES = (); }; };
8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08FB779EFE84155DC02AAC07 /* Foundation.framework */; };
8DD76F9F0486AA7600D96B5E /* nub.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = C6859EA3029092ED04C91782 /* nub.1 */; };
+ DA2B05160D8897590018BF34 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA2B05150D8897590018BF34 /* Cocoa.framework */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -31,6 +32,7 @@
32A70AAB03705E1F00C91783 /* nub_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = nub_Prefix.pch; sourceTree = "<group>"; };
8DD76FA10486AA7600D96B5E /* nub */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = nub; sourceTree = BUILT_PRODUCTS_DIR; };
C6859EA3029092ED04C91782 /* nub.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = nub.1; sourceTree = "<group>"; };
+ DA2B05150D8897590018BF34 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -39,6 +41,7 @@
buildActionMask = 2147483647;
files = (
8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */,
+ DA2B05160D8897590018BF34 /* Cocoa.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -68,6 +71,7 @@
08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */ = {
isa = PBXGroup;
children = (
+ DA2B05150D8897590018BF34 /* Cocoa.framework */,
08FB779EFE84155DC02AAC07 /* Foundation.framework */,
);
name = "External Frameworks and Libraries";

0 comments on commit fc10de3

Please sign in to comment.