Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix compiler warnings, remove redundant actions from Nukefile

  • Loading branch information...
commit 4790807653037f2ba8b27fa3122ec43e57cb769a 1 parent a39fadc
@timburks authored
Showing with 11 additions and 11 deletions.
  1. +0 −10 Nukefile
  2. +7 −0 objc/Kurt.m
  3. +4 −1 objc/KurtMain.h
View
10 Nukefile
@@ -28,16 +28,6 @@
(compilation-tasks)
(framework-tasks)
-(task "clean" is
- (SH "rm -rf build")
- (SH "rm -rf MacOS/*/*.xcodeproj/*.mode1v3")
- (SH "rm -rf MacOS/*/*.xcodeproj/*.pbxuser")
- (SH "rm -rf MacOS/*/build"))
-
-(task "clobber" => "clean" is
- (SH "rm -rf #{@framework_dir}"))
-
(task "default" => "framework")
(task "doc" is (SH "nudoc"))
-
View
7 objc/Kurt.m
@@ -282,6 +282,13 @@ @implementation Kurt
static Kurt *sharedKurt = nil;
++ (Kurt *) kurt
+{
+ NSLog(@"[Kurt kurt] should be overridden in nu/kurt.nu; is Kurt installed correctly?");
+ assert(0);
+ return nil;
+}
+
+ (Kurt *) bareKurt
{
if (!sharedKurt)
View
5 objc/KurtMain.h
@@ -21,10 +21,13 @@
@class KurtRequest;
-@protocol KurtDelegate
+@protocol KurtDelegate <NSObject>
// Override this to perform Objective-C setup of your Kurt.
- (void) applicationDidFinishLaunching;
+// Load a Nu source file containing a site description and chdir to the containing directory.
+- (void) configureSite:(NSString *) site;
+
// Call this within applicationDidFinishLaunching to add a handler.
// The block argument can be a Nu or Objective-C block.
- (void) addHandlerWithHTTPMethod:(NSString *)httpMethod path:(NSString *)path block:(id)block;
Please sign in to comment.
Something went wrong with that request. Please try again.