Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Burks
committed
Jun 29, 2010
1 parent
38050c6
commit c0bc739
Showing
33 changed files
with
1,934 additions
and
1,642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* Localized versions of Info.plist keys */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>nu.programming.nunja</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>NSPrincipalClass</key> | ||
<string></string> | ||
</dict> | ||
</plist> |
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#import <Foundation/Foundation.h> | ||
#import "Nunja.h" | ||
#import "NunjaDelegate.h" | ||
#import "NunjaRequest.h" | ||
#import "NunjaRequestHandler.h" | ||
|
||
@interface MyNunjaDelegate : NunjaDelegate | ||
{ | ||
} | ||
@end | ||
|
||
@implementation MyNunjaDelegate | ||
|
||
- (void) nunjaDidFinishLaunching { | ||
#ifdef DARWIN | ||
[self addHandlerWithHTTPMethod:@"GET" | ||
path:@"/block/me:" | ||
block:^(NunjaRequest *REQUEST) { | ||
NSMutableString *result = [NSMutableString string]; | ||
[result appendString:@"Handling 'block'\n"]; | ||
[result appendString:@"Bindings\n"]; | ||
[result appendString:[[REQUEST bindings] description]]; | ||
[result appendString:@"\n"]; | ||
[result appendString:@"Query\n"]; | ||
[result appendString:[[REQUEST query] description]]; | ||
[REQUEST setContentType:@"text/plain"]; | ||
return result; | ||
}]; | ||
#endif | ||
} | ||
@end | ||
|
||
int main (int argc, const char * argv[]) | ||
{ | ||
return NunjaMain(argc, argv, @"MyNunjaDelegate"); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.