Created
May 13, 2013 06:35
-
-
Save C4Tutorials/5566511 to your computer and use it in GitHub Desktop.
Basic Notifications VIVO workshop session 3
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
// | |
// C4WorkSpace.m | |
// Basic Notifications | |
// | |
// Created by moi on 13-05-12. | |
// Copyright (c) 2013 moi. All rights reserved. | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace | |
-(void)setup { | |
[self listenFor:@"nobodyListensToMe" andRunMethod:@"thatsBecauseYoureBoring"]; | |
} | |
-(void)touchesBegan { | |
[self postNotification:@"nobodyListensToMe"]; | |
} | |
-(void)thatsBecauseYoureBoring { | |
C4Log(@"That's because you're boring"); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment