This file contains hidden or 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
@interface PragBook : NSObject { | |
NSString *title; | |
NSString *author; | |
NSMutableArray *chapters; | |
} | |
@interface Chapter : NSObject { | |
NSString *chapterTitle; | |
NSNumber *pageCount; | |
} |
This file contains hidden or 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
-(PragBook *) book{ | |
if (!book) { | |
self.book = [[PragBook alloc] init]; | |
//self.book.title = @"Manage Your Project Portfolio"; | |
//self.book.author = @"Johanna Rothman"; | |
NSDictionary *bookInfo = [NSDictionary dictionaryWithObjectsAndKeys: | |
@"Manage Your Project Portfolio", @"title", | |
@"Johana Rothman", @"author", nil]; | |
[self.book setValuesForKeysWithDictionary:bookInfo]; | |
} |
NewerOlder