Changeset 40
- Timestamp:
- 06/20/06 00:22:32 (4 years ago)
- Location:
- trunk
- Files:
-
- 12 modified
-
AtomApi.m (modified) (2 diffs)
-
English.lproj/MainMenu.nib/keyedobjects.nib (modified) (previous)
-
ImageDragArea.m (modified) (1 diff)
-
LoginWindowController.m (modified) (2 diffs)
-
PrefController.m (modified) (4 diffs)
-
Preferences.nib/info.nib (modified) (1 diff)
-
Preferences.nib/keyedobjects.nib (modified) (previous)
-
TypePadAtomAPI.m (modified) (9 diffs)
-
TypePadController.m (modified) (1 diff)
-
Vox.m (modified) (6 diffs)
-
VoxAtomApi.m (modified) (4 diffs)
-
VoxRoundedView.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/AtomApi.m
r35 r40 149 149 150 150 - (void) makerequest:(NSString *) reqtype { 151 NSLog(@"Making request to url '%@'\n", apiurl);151 // NSLog(@"Making request to url '%@'\n", apiurl); 152 152 NSURL *aURL = [NSURL URLWithString:apiurl]; 153 153 [aURL URLHandleUsingCache:NO]; … … 157 157 // set auth if we need it. 158 158 if ([self requiresAuth]) { 159 NSLog(@" XXX Auth required\n");159 // NSLog(@" XXX Auth required\n"); 160 160 NSString *login = [self authuser]; 161 161 NSString *password = [self authpass]; -
trunk/ImageDragArea.m
r35 r40 24 24 25 25 - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender { 26 NSLog(@"- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender - called\n");26 // NSLog$1(@"- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender - called\n"); 27 27 TypePad *tp = [[[TypePad alloc] init] autorelease]; 28 28 [tp dispatchAction:[sender draggingPasteboard]]; -
trunk/LoginWindowController.m
r38 r40 98 98 if ([tp addAccount:[usernamelist stringValue] pass:[password stringValue]]) { 99 99 [tp saveAccounts]; 100 [tp appNotify:@"You are now connected to TypePad" title:@"Connected"]; 100 101 [NSBundle loadNibNamed:@"TypePad.nib" owner:self]; 101 102 [mywindow close]; 102 103 } else { 103 NSRunAlertPanel(@"Alert", @" No blogs were loaded", @"OK", nil, nil);104 NSRunAlertPanel(@"Alert", @"Login Failed", @"OK", nil, nil); 104 105 } 105 106 } … … 109 110 if ([vx addAccount:[usernamelist stringValue] pass:[password stringValue]]) { 110 111 [vx saveAccounts]; 112 [vx appNotify:@"You are now connected to Vox" title:@"Connected"]; 111 113 [NSBundle loadNibNamed:@"Vox.nib" owner:self]; 112 114 [mywindow close]; 113 115 } else { 114 NSRunAlertPanel(@"Alert", @" No blogs were loaded", @"OK", nil, nil);116 NSRunAlertPanel(@"Alert", @"Login Failed", @"OK", nil, nil); 115 117 } 116 118 } -
trunk/PrefController.m
r39 r40 6 6 // 1 7 7 - (id)init { 8 NSLog(@"PrefController - init -- called \n");8 // NSLog(@"PrefController - init -- called \n"); 9 9 if (self = [super init]) { 10 10 [self setToolbar:[[NSToolbar alloc] initWithIdentifier:@"preferencePanes"]]; … … 142 142 VoxCollection *voxcol = key; 143 143 [myCollections setObject:[voxcol collectionID] forKey:[NSString stringWithFormat:@"Collection: %@", [voxcol collectionTitle]]]; 144 NSLog(@"Mapping collection '%@' to id '%@'", [voxcol collectionTitle], [voxcol collectionID]);144 // NSLog(@"Mapping collection '%@' to id '%@'", [voxcol collectionTitle], [voxcol collectionID]); 145 145 [vx_image_dropdown addItemWithTitle:[NSString stringWithFormat:@"Collection: %@", [voxcol collectionTitle]]]; 146 146 [vx_text_dropdown addItemWithTitle:[NSString stringWithFormat:@"Collection: %@", [voxcol collectionTitle]]]; … … 229 229 230 230 - (void) windowWillClose:(id) sender { 231 NSLog(@"Window closed\n");231 // NSLog(@"Window closed\n"); 232 232 [self save_generic]; 233 233 if ([self service]) { … … 308 308 309 309 - (void) save_typepad { 310 NSLog(@"- (void) save_typepad -- called\n");310 // NSLog(@"- (void) save_typepad -- called\n"); 311 311 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; 312 312 if ([tp_image_dropdown numberOfItems] > 0) { -
trunk/Preferences.nib/info.nib
r38 r40 16 16 <string>485 586 470 119 0 0 1440 938 </string> 17 17 <key>7</key> 18 <string> 311 316470 122 0 0 1440 938 </string>18 <string>485 585 470 122 0 0 1440 938 </string> 19 19 <key>8</key> 20 20 <string>485 586 470 119 0 0 1440 938 </string> -
trunk/TypePadAtomAPI.m
r35 r40 14 14 15 15 - (void) newpost:(NSString *) to args:(NSMutableDictionary *) args { 16 NSLog(@"-(void) newpost:(NSString *)to - called\n");16 // NSLog(@"-(void) newpost:(NSString *)to - called\n"); 17 17 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; 18 18 NSString *reqtype; 19 19 if ([to isEqualToString:@"weblog"] || [to isEqualToString:@"0"]) { 20 NSLog(@"set as weblog post type\n");20 // NSLog(@"set as weblog post type\n"); 21 21 reqtype = @"POST"; 22 22 [self setApiurl:[NSString stringWithFormat:@"%@weblog/blog_id=%@",@"http://www.typepad.com/t/atom/", [args objectForKey:@"destinationid"]]]; … … 24 24 } 25 25 if ([to isEqualToString:@"gallery"] || [to isEqualToString:@"1"]) { 26 NSLog(@"set as gallery post type\n");26 // NSLog(@"set as gallery post type\n"); 27 27 reqtype = @"POST"; 28 28 [self setApiurl:[NSString stringWithFormat:@"%@gallery/set_id=%@", @"http://www.typepad.com/t/atom/", [args objectForKey:@"destinationid"]]]; … … 30 30 } 31 31 if ([to isEqualToString:@"quickpost"] || [to isEqualToString:@"2"]) { 32 NSLog(@"set as quickpost post type\n");32 // NSLog(@"set as quickpost post type\n"); 33 33 reqtype = @"POST"; 34 34 [self setApiurl:[NSString stringWithFormat:@"%@weblog/blog_id=%@", @"http://www.typepad.com/t/atom/", [args objectForKey:@"destinationid"]]]; … … 36 36 } 37 37 if ([to isEqualToString:@"weblogdiscovery"] || [to isEqualToString:@"3"]) { 38 NSLog(@"set as weblogdiscovery post type\n");38 // NSLog(@"set as weblogdiscovery post type\n"); 39 39 reqtype = @"GET"; 40 40 [self setApiurl:[NSString stringWithFormat:@"%@weblog", @"http://www.typepad.com/t/atom/"]]; … … 42 42 } 43 43 if ([to isEqualToString:@"categorydiscovery"] || [to isEqualToString:@"4"]) { 44 NSLog(@"set as categorydiscovery post type\n");44 // NSLog(@"set as categorydiscovery post type\n"); 45 45 reqtype = @"GET"; 46 46 [self setApiurl:[NSString stringWithFormat:@"%@categories/blog_id=%@", @"http://www.typepad.com/t/atom/", [args objectForKey:@"blog_id"] ]]; … … 48 48 } 49 49 if ([to isEqualToString:@"gallerydiscovery"] || [to isEqualToString:@"5"]) { 50 NSLog(@"set as gallerydiscovery post type\n");50 // NSLog(@"set as gallerydiscovery post type\n"); 51 51 reqtype = @"GET"; 52 52 [self setApiurl:[NSString stringWithFormat:@"%@gallery", @"http://www.typepad.com/t/atom/"]]; 53 53 [self weblog_discover]; 54 54 } 55 NSLog(@"Making request with request type %@\n", reqtype);55 // NSLog(@"Making request with request type %@\n", reqtype); 56 56 [self makerequest:reqtype]; 57 57 } 58 58 59 59 - (NSString *) gallery_upload: (NSString *) file { 60 NSLog(@"- (NSString *) gallery_newitem - called");60 // NSLog(@"- (NSString *) gallery_newitem - called"); 61 61 NSData *data = [NSData dataWithContentsOfFile:file]; 62 62 NSString *encodedFile = [data base64Encoding]; … … 67 67 68 68 - (NSString *) weblog_upload: (NSString *) file { 69 NSLog(@"- (NSString *) weblog_upload - called");69 // NSLog(@"- (NSString *) weblog_upload - called"); 70 70 NSData *data = [NSData dataWithContentsOfFile:file]; 71 71 NSString *encodedFile = [data base64Encoding]; … … 77 77 78 78 - (NSString *) weblog_newpost: (NSString *) title content: (NSString *) content { 79 NSLog(@"- (NSString *) weblog_newpost - called");79 // NSLog(@"- (NSString *) weblog_newpost - called"); 80 80 atomdata = [NSString stringWithFormat:@"<entry xmlns=\"http://purl.org/atom/ns#\"><title>%@</title><summary></summary><content mode=\"xml\"><div xmlns=\"http://www.w3.org/1999/xhtml\">%@</div></content>%@</entry>", title, content, [self weblog_postcategories]]; 81 81 // NSLog(@"Atom feed:\n%@\n", atomdata); … … 84 84 85 85 - (NSString *) weblog_discover { 86 NSLog(@"- (NSString *) weblog_newitem - called");86 // NSLog(@"- (NSString *) weblog_newitem - called"); 87 87 /* atomdata = [NSString stringWithFormat:@"<entry xmlns=\"http://purl.org/atom/ns#\"><title>%@</title><summary></summary><content mode=\"xml\"><div xmlns=\"http://www.w3.org/1999/xhtml\">%@</div></content></entry>", title, content]; */ 88 88 atomdata = @""; -
trunk/TypePadController.m
r30 r40 5 5 6 6 - (void)awakeFromNib { 7 NSLog(@"TypePadController - (void)awakeFromNib - called\n");7 // NSLog(@"TypePadController - (void)awakeFromNib - called\n"); 8 8 } 9 9 -
trunk/Vox.m
r39 r40 130 130 - (void) dispatchAction: (NSPasteboard *) pb { 131 131 int actionType = [self handleTypes:pb]; 132 switch (actionType) { 133 case 1: 134 [self handleTypeOne:[ntypes objectForKey:@"stringForType:_NSStringPboardType"]]; 135 break; 136 case 3: 137 [self handleTypeThree:[pb propertyListForType:@"NSFilenamesPboardType"]]; 138 break; 139 default: 140 NSLog(@"Something went horribly wrong.\n"); 132 if (actionType == 3) { 133 [self handleTypeThree:[pb propertyListForType:@"NSFilenamesPboardType"]]; 134 } 135 if (actionType == 1) { 136 [self handleTypeOne:[ntypes objectForKey:@"stringForType:_NSStringPboardType"]]; 141 137 } 142 138 } … … 144 140 // text 145 141 - (void) handleTypeOne: (NSString *) text { 146 NSLog(@"- (void) handleTypeOne: (NSString *) text - called\n");142 // NSLog(@"- (void) handleTypeOne: (NSString *) text - called\n"); 147 143 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; 148 144 NSString *postloc = [userDefaults objectForKey:@"text destination type"]; … … 160 156 // image 161 157 - (void) handleTypeThree: (NSArray *) list { 162 NSLog(@"- (void) handleTypeThree: (NSArray *) list - called\n");158 // NSLog(@"- (void) handleTypeThree: (NSArray *) list - called\n"); 163 159 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; 164 160 NSString *postloc = [userDefaults objectForKey:@"vox image destination type"]; … … 168 164 NSString *path; 169 165 while( path = [enumerator nextObject] ) { 170 NSLog([NSString stringWithFormat:@"Uploading file %@", path]);166 // NSLog([NSString stringWithFormat:@"Uploading file %@", path]); 171 167 VoxAtomApi *client = [[[VoxAtomApi alloc] init] autorelease]; 172 168 [client setAuth:[self defaultaccount] pass:[self defaultAccountPass]]; … … 180 176 181 177 - (int) handleTypes: (NSPasteboard *) pb { 182 NSLog(@"- (int) handleTypes:(NSPasteboard *) pb - called\n");178 // NSLog(@"- (int) handleTypes:(NSPasteboard *) pb - called\n"); 183 179 NSArray *types = [self allowTypes]; 184 180 unsigned int i, count = [types count]; … … 193 189 totalcount++; 194 190 [ntypes setObject:[obj description] forKey:[NSString stringWithFormat:@"%@_%@", methods[m], type]]; 195 NSLog(@"%@ - %@ - %@\n", methods[m], type, [obj description]);191 // NSLog(@"%@ - %@ - %@\n", methods[m], type, [obj description]); 196 192 } 197 193 } -
trunk/VoxAtomApi.m
r36 r40 26 26 } 27 27 if ([to isEqualToString:@"collection"] || [to isEqualToString:@"1"]) { 28 NSLog(@"set as weblog post type\n");28 // NSLog(@"set as weblog post type\n"); 29 29 reqtype = @"POST"; 30 30 [self setApiurl:[NSString stringWithFormat:@"http://www.vox.com/atom/svc=post/collection_id=%@", [args objectForKey:@"destinationid"]]]; … … 32 32 } 33 33 if ([to isEqualToString:@"quickpost"] || [to isEqualToString:@"2"]) { 34 NSLog(@"set as quickpost post type\n");34 // NSLog(@"set as quickpost post type\n"); 35 35 reqtype = @"POST"; 36 36 [self setApiurl:[NSString stringWithFormat:@"http://www.vox.com/atom/collection_id=%@", [args objectForKey:@"destinationid"]]]; … … 52 52 53 53 - (NSString *) weblog_upload: (NSString *) file { 54 NSLog(@"- (NSString *) weblog_upload - called");54 // NSLog(@"- (NSString *) weblog_upload - called"); 55 55 NSData *data = [NSData dataWithContentsOfFile:file]; 56 56 NSString *encodedFile = [data base64Encoding]; … … 61 61 62 62 - (NSString *) weblog_newpost: (NSString *) title content: (NSString *) content { 63 NSLog(@"- (NSString *) weblog_newpost - called");63 // NSLog(@"- (NSString *) weblog_newpost - called"); 64 64 atomdata = [NSString stringWithFormat:@"<entry xmlns=\"http://purl.org/atom/ns#\"><title>%@</title><summary></summary><content mode=\"xml\"><div xmlns=\"http://www.w3.org/1999/xhtml\">%@</div></content></entry>", title, content]; 65 65 return atomdata; -
trunk/VoxRoundedView.m
r36 r40 45 45 NSPasteboard *pboard = [sender draggingPasteboard]; 46 46 NSArray *filenames = [pboard propertyListForType:NSFilenamesPboardType]; 47 NSLog(@"draggingEntered: filenames: %@\n", [filenames description]);47 // NSLog$1(@"draggingEntered: filenames: %@\n", [filenames description]); 48 48 */ 49 49
