diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/ios/framework/iOSFramework/Thing.m')
-rw-r--r-- | media/webrtc/trunk/tools/gyp/test/ios/framework/iOSFramework/Thing.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/ios/framework/iOSFramework/Thing.m b/media/webrtc/trunk/tools/gyp/test/ios/framework/iOSFramework/Thing.m new file mode 100644 index 000000000..5b2b54925 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/framework/iOSFramework/Thing.m @@ -0,0 +1,22 @@ +#import "Thing.h" + +@interface Thing () + +@end + +@implementation Thing + ++ (instancetype)thing { + static Thing* thing = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + thing = [[[self class] alloc] init]; + }); + return thing; +} + +- (void)sayHello { + NSLog(@"Hello World"); +} + +@end |