Changeset 4460
- Timestamp:
- 01/31/07 15:44:12 (2 years ago)
- Files:
-
- WiredClient/trunk/English.lproj/Preferences.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/English.lproj/Preferences.nib/info.nib (modified) (1 diff)
- WiredClient/trunk/English.lproj/Preferences.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/ReleaseNotes.rtf (modified) (1 diff)
- WiredClient/trunk/French.lproj/Preferences.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/French.lproj/Preferences.nib/info.nib (modified) (1 diff)
- WiredClient/trunk/French.lproj/Preferences.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/German.lproj/Preferences.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/German.lproj/Preferences.nib/info.nib (modified) (1 diff)
- WiredClient/trunk/German.lproj/Preferences.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/Japanese.lproj/Preferences.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/Japanese.lproj/Preferences.nib/info.nib (modified) (1 diff)
- WiredClient/trunk/Japanese.lproj/Preferences.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/WCApplicationController.m (modified) (4 diffs)
- WiredClient/trunk/WCDock.h (modified) (1 diff)
- WiredClient/trunk/WCDock.m (modified) (1 diff)
- WiredClient/trunk/WCPreferences.h (modified) (1 diff)
- WiredClient/trunk/WCPreferences.m (modified) (2 diffs)
- WiredClient/trunk/WCServerConnection.m (modified) (2 diffs)
- WiredClient/trunk/WCSettings.h (modified) (1 diff)
- WiredClient/trunk/WCSettings.m (modified) (1 diff)
- WiredClient/trunk/WCTrackers.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/English.lproj/Preferences.nib/classes.nib
r4319 r4460 98 98 "_postInChatButton" = NSButton; 99 99 "_preferencesTabView" = NSTabView; 100 "_preventMultipleConnectionsButton" = NSButton; 100 101 "_previewBackgroundColorWell" = NSColorWell; 101 102 "_previewFontButton" = NSButton; WiredClient/trunk/English.lproj/Preferences.nib/info.nib
r4165 r4460 16 16 </array> 17 17 <key>IBSystem Version</key> 18 <string>8I127</string> 18 <string>8L127</string> 19 <key>IBUserGuides</key> 20 <dict> 21 <key>5</key> 22 <dict> 23 <key>guideLocations</key> 24 <array> 25 <string>Horizontal:234.000000</string> 26 </array> 27 <key>guidesLocked</key> 28 <false/> 29 </dict> 30 </dict> 19 31 </dict> 20 32 </plist> WiredClient/trunk/English.lproj/ReleaseNotes.rtf
r4458 r4460 36 36 - Automatically resume transfer when reconnecting after being disconnected\ 37 37 - Add a reconnect toolbar item\ 38 - Add option to prevent multiple connections to the same host, and just showing that connection's windows instead\ 38 39 - Localization updates 39 40 \f0\b \cf2 \ WiredClient/trunk/French.lproj/Preferences.nib/classes.nib
r4319 r4460 98 98 "_postInChatButton" = NSButton; 99 99 "_preferencesTabView" = NSTabView; 100 "_preventMultipleConnectionsButton" = NSButton; 100 101 "_previewBackgroundColorWell" = NSColorWell; 101 102 "_previewFontButton" = NSButton; WiredClient/trunk/French.lproj/Preferences.nib/info.nib
r4151 r4460 16 16 </array> 17 17 <key>IBSystem Version</key> 18 <string>8 I127</string>18 <string>8L127</string> 19 19 </dict> 20 20 </plist> WiredClient/trunk/German.lproj/Preferences.nib/classes.nib
r4319 r4460 98 98 "_postInChatButton" = NSButton; 99 99 "_preferencesTabView" = NSTabView; 100 "_preventMultipleConnectionsButton" = NSButton; 100 101 "_previewBackgroundColorWell" = NSColorWell; 101 102 "_previewFontButton" = NSButton; WiredClient/trunk/German.lproj/Preferences.nib/info.nib
r4319 r4460 11 11 <key>IBOldestOS</key> 12 12 <integer>3</integer> 13 <key>IBOpenObjects</key> 14 <array> 15 <integer>5</integer> 16 </array> 13 17 <key>IBSystem Version</key> 14 <string>8 I127</string>18 <string>8L127</string> 15 19 </dict> 16 20 </plist> WiredClient/trunk/Japanese.lproj/Preferences.nib/classes.nib
r4319 r4460 103 103 "_postInChatButton" = NSButton; 104 104 "_preferencesTabView" = NSTabView; 105 "_preventMultipleConnectionsButton" = NSButton; 105 106 "_previewBackgroundColorWell" = NSColorWell; 106 107 "_previewFontButton" = NSButton; WiredClient/trunk/Japanese.lproj/Preferences.nib/info.nib
r4319 r4460 16 16 </array> 17 17 <key>IBSystem Version</key> 18 <string>8 I127</string>18 <string>8L127</string> 19 19 </dict> 20 20 </plist> WiredClient/trunk/WCApplicationController.m
r4439 r4460 64 64 65 65 - (void)_connectWithBookmark:(NSDictionary *)bookmark; 66 - (BOOL)_openConnectionWithURL:(WIURL *)url; 66 67 67 68 @end … … 230 231 [url setPassword:password ? password : @""]; 231 232 232 connection = [WCServerConnection serverConnectionWithURL:url bookmark:bookmark]; 233 234 [connection showWindow:self]; 235 [connection connect]; 236 233 if(![self _openConnectionWithURL:url]) { 234 connection = [WCServerConnection serverConnectionWithURL:url bookmark:bookmark]; 235 236 [connection showWindow:self]; 237 [connection connect]; 238 } 239 } 240 241 242 243 - (BOOL)_openConnectionWithURL:(WIURL *)url { 244 WCServerConnection *connection; 245 246 if([WCSettings boolForKey:WCPreventMultipleConnections]) { 247 connection = [[WCDock dock] connectionWithURL:url]; 248 249 if(connection) { 250 [[WCDock dock] openConnection:connection]; 251 252 return YES; 253 } 254 } 255 256 return NO; 237 257 } 238 258 … … 370 390 371 391 - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { 372 if([WCSettings boolForKey:WCConfirmDisconnect] && [[WCDock dock] openConnections] > 0)392 if([WCSettings boolForKey:WCConfirmDisconnect] && [[WCDock dock] connectedConnections] > 0) 373 393 return [(WIApplication *) NSApp runTerminationDelayPanelWithTimeInterval:30.0]; 374 394 … … 475 495 476 496 if([[url scheme] isEqualToString:@"wired"]) { 477 connection = [WCServerConnection serverConnectionWithURL:url]; 478 479 [connection showWindow:self]; 480 [connection connect]; 497 if(![self _openConnectionWithURL:url]) { 498 connection = [WCServerConnection serverConnectionWithURL:url]; 499 500 [connection showWindow:self]; 501 [connection connect]; 502 } 481 503 } 482 504 else if([[url scheme] isEqualToString:@"wiredtracker"]) { WiredClient/trunk/WCDock.h
r4439 r4460 54 54 + (WCDock *)dock; 55 55 56 - (unsigned int)openConnections; 56 - (void)openConnection:(WCServerConnection *)connection; 57 - (WCServerConnection *)connectionWithURL:(WIURL *)url; 58 - (unsigned int)connectedConnections; 57 59 58 60 - (IBAction)open:(id)sender; WiredClient/trunk/WCDock.m
r4439 r4460 350 350 #pragma mark - 351 351 352 - (unsigned int)openConnections { 352 - (void)openConnection:(WCServerConnection *)connection { 353 [self _openConnection:connection]; 354 } 355 356 357 358 - (WCServerConnection *)connectionWithURL:(WIURL *)url { 359 NSEnumerator *enumerator; 360 WCServerConnection *connection; 361 362 enumerator = [_shownConnections objectEnumerator]; 363 364 while((connection = [enumerator nextObject])) { 365 if([url isEqual:[connection URL]]) 366 return connection; 367 } 368 369 return NULL; 370 } 371 372 373 374 - (unsigned int)connectedConnections { 353 375 NSEnumerator *enumerator; 354 376 WCServerConnection *connection; WiredClient/trunk/WCPreferences.h
r4439 r4460 39 39 IBOutlet NSButton *_showTrackersAtStartupButton; 40 40 IBOutlet NSButton *_autoHideOnSwitchButton; 41 IBOutlet NSButton *_preventMultipleConnectionsButton; 41 42 IBOutlet NSButton *_confirmDisconnectButton; 42 43 WiredClient/trunk/WCPreferences.m
r4439 r4460 335 335 336 336 [_autoHideOnSwitchButton setState:[WCSettings boolForKey:WCAutoHideOnSwitch]]; 337 [_preventMultipleConnectionsButton setState:[WCSettings boolForKey:WCPreventMultipleConnections]]; 337 338 [_confirmDisconnectButton setState:[WCSettings boolForKey:WCConfirmDisconnect]]; 338 339 … … 435 436 436 437 [WCSettings setBool:[_autoHideOnSwitchButton state] forKey:WCAutoHideOnSwitch]; 438 [WCSettings setBool:[_preventMultipleConnectionsButton state] forKey:WCPreventMultipleConnections]; 437 439 [WCSettings setBool:[_confirmDisconnectButton state] forKey:WCConfirmDisconnect]; 438 440 WiredClient/trunk/WCServerConnection.m
r4455 r4460 34 34 #import "WCCache.h" 35 35 #import "WCConsole.h" 36 #import "WCDock.h" 36 37 #import "WCLink.h" 37 38 #import "WCMessages.h" … … 378 379 [_link release]; 379 380 _link = NULL; 381 382 [self autorelease]; 380 383 } 381 384 WiredClient/trunk/WCSettings.h
r4439 r4460 38 38 39 39 #define WCAutoHideOnSwitch @"WCAutoHideOnSwitch" 40 #define WCPreventMultipleConnections @"WCPreventMultipleConnections" 40 41 #define WCConfirmDisconnect @"WCConfirmDisconnect" 41 42 WiredClient/trunk/WCSettings.m
r4439 r4460 176 176 WCAutoHideOnSwitch, 177 177 [NSNumber numberWithBool:YES], 178 WCPreventMultipleConnections, 179 [NSNumber numberWithBool:YES], 178 180 WCConfirmDisconnect, 179 181 WiredClient/trunk/WCTrackers.m
r4439 r4460 479 479 } 480 480 } 481 } else {482 NSLog(@"expand %@", tracker);483 481 } 484 482 } … … 497 495 - (void)netServiceBrowser:(NSNetServiceBrowser *)netServiceBrowser didFindService:(NSNetService *)netService moreComing:(BOOL)moreComing { 498 496 [netService setDelegate:self]; 499 [netService resolve ];497 [netService resolveWithTimeout:5.0]; 500 498 501 499 [_bonjourTracker addChild:[WCTracker bonjourServerWithNetService:netService]];
