|
Revision 41, 0.6 kB
(checked in by ngerakines, 3 years ago)
|
|
* Put into place the real icons that Wiley sent over
* Fixed the prefs on login
* Removed the TypePadSuper class
* General code cleanup
|
| Line | |
|---|
| 1 | #import "TypePadController.h" |
|---|
| 2 | #import "TypePad.h" |
|---|
| 3 | #import "TypePadWeblog.h" |
|---|
| 4 | |
|---|
| 5 | @implementation TypePadController |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | - (void)awakeFromNib { |
|---|
| 9 | [self init_comemode]; |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | - (IBAction)refreshcomments:(id)sender { |
|---|
| 13 | // .. // |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | - (void) init_comemode { |
|---|
| 17 | [bloglist removeAllItems]; |
|---|
| 18 | id key; |
|---|
| 19 | TypePad *tp = [[[TypePad alloc] init] autorelease]; |
|---|
| 20 | NSEnumerator *blog_enumerator = [[tp defaultAccountWeblogs] objectEnumerator]; |
|---|
| 21 | while (key = [blog_enumerator nextObject]) { |
|---|
| 22 | TypePadWeblog *tpobj = key; |
|---|
| 23 | [bloglist addItemWithTitle:[NSString stringWithFormat:@"Weblog: %@", [tpobj weblogTitle]]]; |
|---|
| 24 | } |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | @end |
|---|