Browse files

Updated copyright and license

  • Loading branch information...
1 parent 913dee5 commit 134a5c889469776894209c6baf7504d345718110 @stevestreza stevestreza committed Jul 26, 2011
View
2 TestApp/TestApp-Info.plist
@@ -25,7 +25,7 @@
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSHumanReadableCopyright</key>
- <string>Copyright © 2011 Mustacheware. All rights reserved.</string>
+ <string>Copyright © 2011 Mustacheware. Licensed under the Apache 2.0 license.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
View
2 TestApp/TestAppAppDelegate.h
@@ -2,7 +2,7 @@
// TestAppAppDelegate.h
// TestApp
//
-// Created by Steve Streza on 7/24/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/24/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 TestApp/TestAppAppDelegate.m
@@ -2,7 +2,7 @@
// TestAppAppDelegate.m
// TestApp
//
-// Created by Steve Streza on 7/24/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/24/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 TestApp/main.m
@@ -2,7 +2,7 @@
// main.m
// TestApp
//
-// Created by Steve Streza on 7/24/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/24/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 TestService/TestService-Info.plist
@@ -21,7 +21,7 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
- <string>Copyright © 2011 Mustacheware. All rights reserved.</string>
+ <string>Copyright © 2011 Steve Streza. Licensed under the Apache 2.0 license.</string>
<key>XPCService</key>
<dict>
<key>ServiceType</key>
View
11 TestService/main.m
@@ -2,7 +2,7 @@
// main.c
// TestService
//
-// Created by Steve Streza on 7/24/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/24/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -25,12 +25,13 @@ int main(int argc, const char *argv[])
{
[XPCListener listenForEventsWithHandler:^(NSDictionary *message, XPCConnection *connection) {
if([[message objectForKey:@"operation"] isEqual:@"multiply"]){
- __block double product = 1.0;
NSArray *values = [message objectForKey:@"values"];
- [values enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
- product = product * [(NSNumber *)obj doubleValue];
- }];
+ // calculate the product
+ double product = 1.0;
+ for(NSUInteger index=0; index < values.count; index++){
+ product = product * [(NSNumber *)[values objectAtIndex:index] doubleValue];
+ }
[connection sendMessage:[NSDictionary dictionaryWithObject:[NSNumber numberWithDouble:product] forKey:@"result"]];
}
View
3 XPCKit.xcworkspace/contents.xcworkspacedata
@@ -4,4 +4,7 @@
<FileRef
location = "container:XPCKit.xcodeproj">
</FileRef>
+ <FileRef
+ location = "group:README.md">
+ </FileRef>
</Workspace>
View
2 XPCKit/NSArray+XPCParse.h
@@ -2,7 +2,7 @@
// NSArray+XPCParse.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSArray+XPCParse.m
@@ -2,7 +2,7 @@
// NSArray+XPCParse.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSData+XPCParse.h
@@ -2,7 +2,7 @@
// NSData+XPCParse.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSData+XPCParse.m
@@ -2,7 +2,7 @@
// NSData+XPCParse.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSDictionary+XPCParse.h
@@ -2,7 +2,7 @@
// NSDictionary+XPCParse.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSDictionary+XPCParse.m
@@ -2,7 +2,7 @@
// NSDictionary+XPCParse.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSNumber+XPCParse.h
@@ -2,7 +2,7 @@
// NSNumber+XPCParse.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSNumber+XPCParse.m
@@ -2,7 +2,7 @@
// NSNumber+XPCParse.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSObject+XPCParse.h
@@ -2,7 +2,7 @@
// NSObject+XPCParse.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSObject+XPCParse.m
@@ -2,7 +2,7 @@
// NSObject+XPCParse.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSString+XPCParse.h
@@ -2,7 +2,7 @@
// NSString+XPCParse.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/NSString+XPCParse.m
@@ -2,7 +2,7 @@
// NSString+XPCParse.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/XPCConnection.h
@@ -2,7 +2,7 @@
// XPCConnection.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/XPCConnection.m
@@ -2,7 +2,7 @@
// XPCConnection.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/XPCExtensions.h
@@ -2,7 +2,7 @@
// XPCExtensions.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/XPCKit-Info.plist
@@ -23,7 +23,7 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
- <string>Copyright © 2011 Mustacheware. All rights reserved.</string>
+ <string>Copyright © 2011 Steve Streza. Licensed under the Apache 2.0 license.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
View
2 XPCKit/XPCKit.h
@@ -2,7 +2,7 @@
// XPCKit.h
// XPCKit
//
-// Created by Steve Streza on 7/24/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/24/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/XPCListener.h
@@ -2,7 +2,7 @@
// XPCListener.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/XPCListener.m
@@ -2,7 +2,7 @@
// XPCListener.m
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKit/XPCTypes.h
@@ -2,7 +2,7 @@
// XPCTypes.h
// XPCKit
//
-// Created by Steve Streza on 7/25/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/25/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKitTests/XPCKitTests.h
@@ -2,7 +2,7 @@
// XPCKitTests.h
// XPCKitTests
//
-// Created by Steve Streza on 7/24/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/24/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
View
2 XPCKitTests/XPCKitTests.m
@@ -2,7 +2,7 @@
// XPCKitTests.m
// XPCKitTests
//
-// Created by Steve Streza on 7/24/11. Copyright 2011 Mustacheware.
+// Created by Steve Streza on 7/24/11. Copyright 2011 Steve Streza.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

0 comments on commit 134a5c8

Please sign in to comment.