From 28ce87049dc989a01a744f877317cdd39be56597 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 17 Jun 2009 21:57:49 +0000 Subject: Epic multi-threading. --- UICaboodle/RVBook.mm | 3 +++ UICaboodle/RVPage.h | 1 + UICaboodle/RVPage.mm | 4 ++++ 3 files changed, 8 insertions(+) (limited to 'UICaboodle') diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 433de39..18de2b6 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -65,6 +65,9 @@ if (toolbar_ != nil) [toolbar_ setDelegate:nil]; + for (RVPage *page in pages_) + [page setBook:nil]; + [pages_ release]; [navbar_ release]; [transition_ release]; diff --git a/UICaboodle/RVPage.h b/UICaboodle/RVPage.h index 7aebba2..18e3dd4 100644 --- a/UICaboodle/RVPage.h +++ b/UICaboodle/RVPage.h @@ -35,5 +35,6 @@ - (id) initWithBook:(RVBook *)book; - (void) setDelegate:(id)delegate; +- (void) setBook:(RVBook *)book; @end diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 7700755..9d77a86 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -76,4 +76,8 @@ delegate_ = delegate; } +- (void) setBook:(RVBook *)book { + book_ = book; +} + @end -- cgit v1.2.3