Skip to content

Commit 3f7cf7b

Browse files
committed
finished the evening
1 parent b93c689 commit 3f7cf7b

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

Protocols/PRViewController.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
//
88

99
#import <UIKit/UIKit.h>
10+
#import "PRRequest.h"
1011

11-
@interface PRViewController : UIViewController <UITextFieldDelegate>
12+
@interface PRViewController : UIViewController <UITextFieldDelegate, PRRequestDelegate>
1213

1314
@end

Protocols/PRViewController.m

+13
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ - (void)viewDidLoad
1818
{
1919
[super viewDidLoad];
2020
// Do any additional setup after loading the view, typically from a nib.
21+
22+
PRRequest *request = [[PRRequest alloc] init];
23+
[request startSomething];
2124
}
2225

2326
- (void)didReceiveMemoryWarning
@@ -41,6 +44,16 @@ -(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange
4144
return YES;
4245
}
4346

47+
-(void)requestStarted
48+
{
49+
NSLog(@"Request started at %@", [NSDate date]);
50+
51+
52+
}
53+
54+
-(void)requestFinished:(PRRequest *)request {
55+
NSLog(@"Request %p finished at %@", request, [NSDate date]);
56+
}
4457

4558

4659
@end

Protocols/Protocols/PRRequest.m

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ -(void)startSomething {
2525

2626
-(void)stopSomething {
2727
// hey self.delegate do you have this method?
28-
2928
if([self.delegate respondsToSelector:@selector(requestFinished:)]) {
3029
[self.delegate requestFinished:self];
3130
}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ April 11, 2013
44

55
Theme for tonight's Women Who Code iOS Study Group is Protocols!
66

7+
http://www.meetup.com/Women-Who-Code-SF/events/112116682/
8+
79
## Thanks
810

911
Thanks to SocialChorus for sponsoring our delicious pizza dinner and hosting us.

0 commit comments

Comments
 (0)