Skip to content

Instantly share code, notes, and snippets.

@gmcerveny
Created October 28, 2010 16:31
Show Gist options
  • Save gmcerveny/651738 to your computer and use it in GitHub Desktop.
Save gmcerveny/651738 to your computer and use it in GitHub Desktop.
-(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];
}
return book;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment