|
Revision 26, 1.4 kB
(checked in by ngerakines, 3 years ago)
|
|
many updates -- too numerous to mention
|
| Line | |
|---|
| 1 | // |
|---|
| 2 | // TypePadSuper.m |
|---|
| 3 | // Fence |
|---|
| 4 | // |
|---|
| 5 | // Created by Nicholas Gerakines on 5/20/06. |
|---|
| 6 | // Copyright 2006 __MyCompanyName__. All rights reserved. |
|---|
| 7 | // |
|---|
| 8 | |
|---|
| 9 | #import "TypePadSuper.h" |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | @implementation TypePadSuper |
|---|
| 13 | |
|---|
| 14 | - (id) init { |
|---|
| 15 | if (self = [super init]) { |
|---|
| 16 | blogs = [[NSMutableDictionary alloc] init]; |
|---|
| 17 | galleries = [[NSMutableDictionary alloc] init]; |
|---|
| 18 | [self retain]; |
|---|
| 19 | } |
|---|
| 20 | return self; |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | /* dealloc */ |
|---|
| 24 | - (void) dealloc { |
|---|
| 25 | [blogs release]; |
|---|
| 26 | [galleries release]; |
|---|
| 27 | |
|---|
| 28 | blogs = nil; |
|---|
| 29 | galleries = nil; |
|---|
| 30 | [super dealloc]; |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | /* blogs */ |
|---|
| 34 | - (NSMutableDictionary *) blogs { return blogs; } |
|---|
| 35 | |
|---|
| 36 | /* -setBlogs: */ |
|---|
| 37 | - (void) setBlogs: (NSMutableDictionary *) Blogs { |
|---|
| 38 | //NSLog(@"in -setBlogs:, old value of blogs: %@, changed to: %@", blogs, Blogs); |
|---|
| 39 | |
|---|
| 40 | if (blogs != Blogs) { |
|---|
| 41 | [blogs autorelease]; |
|---|
| 42 | blogs = [Blogs retain]; |
|---|
| 43 | } |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | /* galleries */ |
|---|
| 47 | - (NSMutableDictionary *) galleries { return galleries; } |
|---|
| 48 | |
|---|
| 49 | /* -setGalleries: */ |
|---|
| 50 | - (void) setGalleries: (NSMutableDictionary *) Galleries { |
|---|
| 51 | //NSLog(@"in -setGalleries:, old value of galleries: %@, changed to: %@", galleries, Galleries); |
|---|
| 52 | |
|---|
| 53 | if (galleries != Galleries) { |
|---|
| 54 | [galleries autorelease]; |
|---|
| 55 | galleries = [Galleries retain]; |
|---|
| 56 | } |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | - (void) resetBlogs { |
|---|
| 60 | [blogs autorelease]; |
|---|
| 61 | blogs = [[NSMutableDictionary alloc] init]; |
|---|
| 62 | } |
|---|
| 63 | |
|---|
| 64 | - (void) resetGalleries { |
|---|
| 65 | [galleries autorelease]; |
|---|
| 66 | galleries = [[NSMutableDictionary alloc] init]; |
|---|
| 67 | } |
|---|
| 68 | |
|---|
| 69 | @end |
|---|