Permalink
Browse files

Improving MulticastDelegate test code

  • Loading branch information...
1 parent 298b503 commit fca79f53415d5a666a1fae27fdee81c8831d6782 @robbiehanson committed Apr 27, 2012
Showing with 2,830 additions and 1,822 deletions.
  1. +0 −6 Xcode/Testing/MulticastDelegateTest/Class1.h
  2. +0 −47 Xcode/Testing/MulticastDelegateTest/Class1.m
  3. +0 −6 Xcode/Testing/MulticastDelegateTest/Class2.h
  4. +0 −45 Xcode/Testing/MulticastDelegateTest/Class2.m
  5. +340 −0 Xcode/Testing/MulticastDelegateTest/Desktop/MulticastDelegateTest.xcodeproj/project.pbxproj
  6. 0 ...ateTest/{ → Desktop}/MulticastDelegateTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  7. +8 −0 Xcode/Testing/MulticastDelegateTest/Desktop/MulticastDelegateTest/AppDelegate.h
  8. +14 −0 Xcode/Testing/MulticastDelegateTest/Desktop/MulticastDelegateTest/AppDelegate.m
  9. +8 −6 ...Testing/MulticastDelegateTest/{ → Desktop/MulticastDelegateTest}/MulticastDelegateTest-Info.plist
  10. +1 −1 ...ulticastDelegateTest_Prefix.pch → Desktop/MulticastDelegateTest/MulticastDelegateTest-Prefix.pch}
  11. +29 −0 Xcode/Testing/MulticastDelegateTest/Desktop/MulticastDelegateTest/en.lproj/Credits.rtf
  12. 0 .../MulticastDelegateTest/{English.lproj → Desktop/MulticastDelegateTest/en.lproj}/InfoPlist.strings
  13. +1,637 −1,169 ...sting/MulticastDelegateTest/{English.lproj → Desktop/MulticastDelegateTest/en.lproj}/MainMenu.xib
  14. +14 −0 Xcode/Testing/MulticastDelegateTest/Desktop/MulticastDelegateTest/main.m
  15. +308 −0 Xcode/Testing/MulticastDelegateTest/Mobile/MulticastDelegateTest.xcodeproj/project.pbxproj
  16. +7 −0 ...tDelegateTest/Mobile/MulticastDelegateTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  17. +8 −0 Xcode/Testing/MulticastDelegateTest/Mobile/MulticastDelegateTest/AppDelegate.h
  18. +30 −0 Xcode/Testing/MulticastDelegateTest/Mobile/MulticastDelegateTest/AppDelegate.m
  19. +38 −0 Xcode/Testing/MulticastDelegateTest/Mobile/MulticastDelegateTest/MulticastDelegateTest-Info.plist
  20. +14 −0 Xcode/Testing/MulticastDelegateTest/Mobile/MulticastDelegateTest/MulticastDelegateTest-Prefix.pch
  21. +2 −0 Xcode/Testing/MulticastDelegateTest/Mobile/MulticastDelegateTest/en.lproj/InfoPlist.strings
  22. +18 −0 Xcode/Testing/MulticastDelegateTest/Mobile/MulticastDelegateTest/main.m
  23. +0 −318 Xcode/Testing/MulticastDelegateTest/MulticastDelegateTest.xcodeproj/project.pbxproj
  24. +0 −24 Xcode/Testing/MulticastDelegateTest/MulticastDelegateTestAppDelegate.h
  25. +0 −185 Xcode/Testing/MulticastDelegateTest/MulticastDelegateTestAppDelegate.m
  26. +14 −0 Xcode/Testing/MulticastDelegateTest/Shared/DelegateTesters.h
  27. +143 −0 Xcode/Testing/MulticastDelegateTest/Shared/DelegateTesters.m
  28. +10 −0 Xcode/Testing/MulticastDelegateTest/Shared/MulticastDelegateTest.h
  29. +186 −0 Xcode/Testing/MulticastDelegateTest/Shared/MulticastDelegateTest.m
  30. +1 −1 Xcode/Testing/MulticastDelegateTest/{ → Shared}/MyProtocol.h
  31. +0 −14 Xcode/Testing/MulticastDelegateTest/main.m
@@ -1,6 +0,0 @@
-#import <Cocoa/Cocoa.h>
-
-
-@interface Class1 : NSObject
-
-@end
@@ -1,47 +0,0 @@
-#import "Class1.h"
-
-#define dispatch_current_queue_label() dispatch_queue_get_label(dispatch_get_current_queue())
-
-@implementation Class1
-
-- (void)didSomething
-{
- NSLog(@"Class1(%s): didSomething", dispatch_current_queue_label());
-}
-
-- (void)didSomethingElse:(BOOL)flag
-{
- NSLog(@"Class1(%s): didSomethingElse:%@", dispatch_current_queue_label(), (flag ? @"YES" : @"NO"));
-}
-
-- (void)foundString:(NSString *)str
-{
- NSLog(@"Class1(%s): foundString:\"%@\"", dispatch_current_queue_label(), str);
-
- [NSThread sleepForTimeInterval:0.2];
-}
-
-- (void)foundString:(NSString *)str andNumber:(NSNumber *)num
-{
- NSLog(@"Class1(%s): foundString:\"%@\" andNumber:%@", dispatch_current_queue_label(), str, num);
-}
-
-- (BOOL)shouldSing
-{
- BOOL answer = NO;
-
- NSLog(@"Class1(%s): shouldSing: returning %@", dispatch_current_queue_label(), (answer ? @"YES" : @"NO"));
-
- return answer;
-}
-
-- (BOOL)shouldDance
-{
- BOOL answer = YES;
-
- NSLog(@"Class1(%s): shouldDance: returning %@", dispatch_current_queue_label(), (answer ? @"YES" : @"NO"));
-
- return answer;
-}
-
-@end
@@ -1,6 +0,0 @@
-#import <Cocoa/Cocoa.h>
-
-
-@interface Class2 : NSObject
-
-@end
@@ -1,45 +0,0 @@
-#import "Class2.h"
-
-#define dispatch_current_queue_label() dispatch_queue_get_label(dispatch_get_current_queue())
-
-@implementation Class2
-
-- (void)didSomething
-{
- NSLog(@"Class2(%s): didSomething", dispatch_current_queue_label());
-}
-
-- (void)didSomethingElse:(BOOL)flag
-{
- NSLog(@"Class2(%s): didSomethingElse:%@", dispatch_current_queue_label(), (flag ? @"YES" : @"NO"));
-}
-
-- (void)foundString:(NSString *)str
-{
- NSLog(@"Class2(%s): foundString:\"%@\"", dispatch_current_queue_label(), str);
-}
-
-- (void)foundString:(NSString *)str andNumber:(NSNumber *)num
-{
- NSLog(@"Class2(%s): foundString:\"%@\" andNumber:%@", dispatch_current_queue_label(), str, num);
-}
-
-- (BOOL)shouldSing
-{
- BOOL answer = YES;
-
- NSLog(@"Class2(%s): shouldSing: returning %@", dispatch_current_queue_label(), (answer ? @"YES" : @"NO"));
-
- return answer;
-}
-
-- (BOOL)shouldDance
-{
- BOOL answer = YES;
-
- NSLog(@"Class2(%s): shouldDance: returning %@", dispatch_current_queue_label(), (answer ? @"YES" : @"NO"));
-
- return answer;
-}
-
-@end
Oops, something went wrong.

0 comments on commit fca79f5

Please sign in to comment.