Changeset 38
- Timestamp:
- 06/19/06 17:51:26 (3 years ago)
- Location:
- trunk
- Files:
-
- 9 modified
-
Fence.xcodeproj/project.pbxproj (modified) (2 diffs)
-
LoginWindowController.h (modified) (1 diff)
-
LoginWindowController.m (modified) (1 diff)
-
PrefController.h (modified) (3 diffs)
-
PrefController.m (modified) (4 diffs)
-
Preferences.nib/classes.nib (modified) (1 diff)
-
Preferences.nib/info.nib (modified) (3 diffs)
-
Preferences.nib/keyedobjects.nib (modified) (previous)
-
TODO (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Fence.xcodeproj/project.pbxproj
r36 r38 241 241 isa = PBXGroup; 242 242 children = ( 243 6DF56A6B0A3BDEDE0037EB33 /* logo-vox-32x32.gif */,244 243 6D15B22C0A2FCC7500BFAC0E /* Growl-WithInstaller.framework */, 245 244 6DBE119F0A1BA42900F171E5 /* ReadMe */, … … 277 276 6D4762920A1E4A0900E16CEE /* Fence Help */, 278 277 6D2D03660A19512F005C5AFA /* tplogo.jpg */, 278 6DF56A6B0A3BDEDE0037EB33 /* logo-vox-32x32.gif */, 279 279 8D1107310486CEB800E47090 /* Info.plist */, 280 280 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */, -
trunk/LoginWindowController.h
r35 r38 11 11 IBOutlet id usernamelist; 12 12 IBOutlet id mywindow; 13 NSMutableArray *recentlogins; 14 NSString *lastlogin; 13 15 } 16 17 - (NSMutableArray *) recentlogins; 18 - (void) setRecentlogins: (NSMutableArray *) Recentlogins; 19 20 - (NSString *) lastlogin; 21 - (void) setLastlogin: (NSString *) Lastlogin; 14 22 15 23 - (IBAction)login:(id)sender; 16 24 25 - (void) init_login; 17 26 - (void) init_typepad; 18 27 - (void) init_vox; -
trunk/LoginWindowController.m
r35 r38 3 3 @implementation LoginWindowController 4 4 5 // init 6 - (id)init { 7 if (self = [super init]) { 8 [self setRecentlogins:[[NSMutableArray alloc] init]]; 9 [self setLastlogin:@""]; 10 } 11 return self; 12 } 13 5 14 - (void)awakeFromNib { 15 // [usernamelist setCompletes:YES]; 16 [self init_login]; 17 // clear the service type at awake 18 // [userDefaults setObject:nil forKey:@"service type"]; 19 } 20 21 - (void) init_login { 6 22 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; 7 8 NSMutableArray *recent_users = [userDefaults objectForKey:@"recent usernames"]; 9 NSEnumerator *enumerator = [recent_users objectEnumerator]; 23 NSEnumerator *enumerator = [[userDefaults objectForKey:@"recent usernames"] objectEnumerator]; 10 24 id key; 11 25 while (key = [enumerator nextObject]) { 12 [usernamelist addItemWithObjectValue:key]; 26 if ([usernamelist numberOfItems] < 9) { 27 if ([usernamelist indexOfItemWithObjectValue:key] == NSNotFound) { 28 [usernamelist addItemWithObjectValue:key]; 29 } 30 } 13 31 } 32 if ([userDefaults objectForKey:@"save_login"]) { 33 if ([userDefaults objectForKey:@"username"]) { 34 [usernamelist selectItemWithObjectValue:[userDefaults objectForKey:@"username"]]; 35 } 36 if ([userDefaults objectForKey:@"password"]) { 37 [password setStringValue:[userDefaults objectForKey:@"password"]]; 38 } 39 } 40 } 41 42 /* dealloc */ 43 - (void) dealloc { 44 [recentlogins release]; 45 [lastlogin release]; 46 47 recentlogins = nil; 48 lastlogin = nil; 49 [super dealloc]; 50 } 51 52 /* recentlogins */ 53 - (NSMutableArray *) recentlogins { return recentlogins; } 54 55 /* -setRecentlogins: */ 56 - (void) setRecentlogins: (NSMutableArray *) Recentlogins { 57 //NSLog(@"in -setRecentlogins:, old value of recentlogins: %@, changed to: %@", recentlogins, Recentlogins); 58 if (recentlogins != Recentlogins) { 59 [recentlogins autorelease]; 60 recentlogins = [Recentlogins retain]; 61 } 62 } 63 64 /* lastlogin */ 65 - (NSString *) lastlogin { return lastlogin; } 66 67 /* -setLastlogin: */ 68 - (void) setLastlogin: (NSString *) Lastlogin { 69 //NSLog(@"in -setLastlogin:, old value of lastlogin: %@, changed to: %@", lastlogin, Lastlogin); 70 if (lastlogin != Lastlogin) { 71 [lastlogin autorelease]; 72 lastlogin = [Lastlogin retain]; 73 } 14 74 } 15 75 -
trunk/PrefController.h
r36 r38 25 25 IBOutlet id PrefsVoxText; 26 26 /* - */ IBOutlet id vx_text_dropdown; 27 // generic pref view // 28 IBOutlet id enable_growl; 29 IBOutlet id save_login; 27 30 28 31 NSToolbar *toolbar; … … 38 41 - (void) windowWillClose:(id) sender; 39 42 43 - (void) init_generic; 40 44 - (void) init_typepad; 41 45 - (void) init_vox; … … 58 62 59 63 /* save methods */ 64 - (void) save_generic; 60 65 - (void) save_typepad; 61 66 - (void) save_vox; -
trunk/PrefController.m
r36 r38 23 23 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; 24 24 [self setService:[userDefaults objectForKey:@"service type"]]; 25 26 if ([[self service] isEqualToString:@"TypePad"]) { 27 [self init_typepad]; 25 // Set the general pref view control values 26 [enable_growl setObjectValue:[userDefaults objectForKey:@"enable_growl"]]; 27 [save_login setObjectValue:[userDefaults objectForKey:@"save_login"]]; 28 29 if ([self service]) { 30 if ([[self service] isEqualToString:@"TypePad"]) { 31 [self init_typepad]; 32 } 33 if ([[self service] isEqualToString:@"Vox"]) { 34 [self init_vox]; 35 } 28 36 } else { 29 [self init_ vox];37 [self init_generic]; 30 38 } 31 39 … … 50 58 [myCollections release]; myCollections = nil; 51 59 [super dealloc]; 60 } 61 62 - (void) init_generic { 63 [items setObject:[self newItem:@"General" image:@"General"] forKey:@"General"]; 64 allowedPanels = [NSArray arrayWithObjects:@"General", NSToolbarFlexibleSpaceItemIdentifier, nil]; 52 65 } 53 66 … … 218 231 - (void) windowWillClose:(id) sender { 219 232 NSLog(@"Window closed\n"); 220 if ([[self service] isEqualToString:@"TypePad"]) { 221 [self save_typepad]; 222 } else { 223 [self save_vox]; 233 [self save_generic]; 234 if ([self service]) { 235 if ([[self service] isEqualToString:@"TypePad"]) { 236 [self save_typepad]; 237 } 238 if ([[self service] isEqualToString:@"Vox"]) { 239 [self save_vox]; 240 } 224 241 } 225 242 } … … 285 302 } 286 303 304 - (void) save_generic { 305 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; 306 [userDefaults setObject:[enable_growl objectValue] forKey:@"enable_growl"]; 307 [userDefaults setObject:[save_login objectValue] forKey:@"save_login"]; 308 } 287 309 288 310 - (void) save_typepad { -
trunk/Preferences.nib/classes.nib
r36 r38 20 20 PrefsVoxText = id; 21 21 PrefsVoxVideo = id; 22 "enable_growl" = id; 22 23 myWindow = id; 24 "save_login" = id; 23 25 "tp_image_dropdown" = id; 24 26 "tp_text_dropdown" = id; -
trunk/Preferences.nib/info.nib
r36 r38 8 8 <dict> 9 9 <key>10</key> 10 <string> 389 726 470 119 0 0 1440 938 </string>10 <string>485 586 470 119 0 0 1440 938 </string> 11 11 <key>11</key> 12 12 <string>485 586 470 119 0 0 1440 938 </string> … … 16 16 <string>485 586 470 119 0 0 1440 938 </string> 17 17 <key>7</key> 18 <string> 485 585470 122 0 0 1440 938 </string>18 <string>311 316 470 122 0 0 1440 938 </string> 19 19 <key>8</key> 20 20 <string>485 586 470 119 0 0 1440 938 </string> … … 26 26 <key>IBOpenObjects</key> 27 27 <array> 28 <integer>10</integer> 29 <integer>8</integer> 28 <integer>7</integer> 30 29 </array> 31 30 <key>IBSystem Version</key> -
trunk/TODO
r2 r38 1 1 TODO 2 - [Prefs] set selectedweblog as selected in blog menu3 - [Prefs] set selectedgallery as selected in gallery menu4 - [Prefs] add option 'Allow mutiple image uploads'5 - [Prefs] add option 'After uploading to my blog, open the entry in edit mode'6 - [Prefs] add option 'When uploading multiple images to my blog, upload them as files and create a single entry with the thumbnails instead of one entry per file'7 - [Prefs] add option 'Bounce the dockbar icon when uploads are complete'8 2 - [Prefs] use the Growl notification framework 9 3 - [App] add audio file support for blogs 10 4 - [App] add video file support for blogs 11 - [App] allow new text posts to be created by dragging blocks of text onto the app12 5 - [App] add extensive applescript support 13 - [App] add a progress indicator or progress bar when uploading files
