Skip to content

Instantly share code, notes, and snippets.

View gmcerveny's full-sized avatar

Greg Cerveny gmcerveny

View GitHub Profile
@interface PragBook : NSObject {
NSString *title;
NSString *author;
NSMutableArray *chapters;
}
@interface Chapter : NSObject {
NSString *chapterTitle;
NSNumber *pageCount;
}
-(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];
}