Changeset 3395
- Timestamp:
- 01/03/06 19:08:32 (3 years ago)
- Files:
-
- WiredClient/trunk/English.lproj/Console.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/Console.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/Console.nib/objects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/InfoPlist.strings (modified) (1 diff)
- WiredClient/trunk/English.lproj/MainMenu.nib/classes.nib (modified) (3 diffs)
- WiredClient/trunk/English.lproj/MainMenu.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/MainMenu.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/MainMenu.nib/objects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/Messages.nib/info.nib (modified) (1 diff)
- WiredClient/trunk/English.lproj/Messages.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/Messages.nib/objects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/News.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/News.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/News.nib/objects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/Preferences.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/English.lproj/Preferences.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/Preferences.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/Preferences.nib/objects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/PublicChat.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/PublicChat.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/PublicChat.nib/objects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/ReleaseNotes.rtf (added)
- WiredClient/trunk/English.lproj/TextFinder.nib (deleted)
- WiredClient/trunk/Info.plist (modified) (2 diffs)
- WiredClient/trunk/WCAboutWindow.h (modified) (2 diffs)
- WiredClient/trunk/WCAboutWindow.m (modified) (1 diff)
- WiredClient/trunk/WCAccount.h (modified) (2 diffs)
- WiredClient/trunk/WCAccount.m (modified) (1 diff)
- WiredClient/trunk/WCAccountEditor.h (modified) (3 diffs)
- WiredClient/trunk/WCAccountEditor.m (modified) (9 diffs)
- WiredClient/trunk/WCAccounts.h (modified) (3 diffs)
- WiredClient/trunk/WCAccounts.m (modified) (12 diffs)
- WiredClient/trunk/WCApplication.h (modified) (1 diff)
- WiredClient/trunk/WCApplication.m (modified) (1 diff)
- WiredClient/trunk/WCBrowserCell.h (modified) (1 diff)
- WiredClient/trunk/WCBrowserCell.m (modified) (1 diff)
- WiredClient/trunk/WCCache.h (modified) (2 diffs)
- WiredClient/trunk/WCCache.m (modified) (1 diff)
- WiredClient/trunk/WCChat.h (modified) (3 diffs)
- WiredClient/trunk/WCChat.m (modified) (16 diffs)
- WiredClient/trunk/WCConnection.h (modified) (6 diffs)
- WiredClient/trunk/WCConnection.m (modified) (9 diffs)
- WiredClient/trunk/WCConnectionController.h (modified) (3 diffs)
- WiredClient/trunk/WCConnectionController.m (modified) (11 diffs)
- WiredClient/trunk/WCConsole.h (modified) (2 diffs)
- WiredClient/trunk/WCConsole.m (modified) (9 diffs)
- WiredClient/trunk/WCConversation.h (modified) (2 diffs)
- WiredClient/trunk/WCConversation.m (modified) (1 diff)
- WiredClient/trunk/WCDock.h (modified) (2 diffs)
- WiredClient/trunk/WCDock.m (modified) (17 diffs)
- WiredClient/trunk/WCError.h (modified) (3 diffs)
- WiredClient/trunk/WCError.m (modified) (12 diffs)
- WiredClient/trunk/WCFile.h (modified) (2 diffs)
- WiredClient/trunk/WCFile.m (modified) (1 diff)
- WiredClient/trunk/WCFileInfo.h (modified) (3 diffs)
- WiredClient/trunk/WCFileInfo.m (modified) (6 diffs)
- WiredClient/trunk/WCFiles.h (modified) (3 diffs)
- WiredClient/trunk/WCFiles.m (modified) (10 diffs)
- WiredClient/trunk/WCKeychain.h (modified) (3 diffs)
- WiredClient/trunk/WCKeychain.m (modified) (7 diffs)
- WiredClient/trunk/WCMain.h (modified) (5 diffs)
- WiredClient/trunk/WCMain.m (modified) (14 diffs)
- WiredClient/trunk/WCMessage.h (modified) (2 diffs)
- WiredClient/trunk/WCMessage.m (modified) (1 diff)
- WiredClient/trunk/WCMessages.h (modified) (2 diffs)
- WiredClient/trunk/WCMessages.m (modified) (8 diffs)
- WiredClient/trunk/WCNews.h (modified) (3 diffs)
- WiredClient/trunk/WCNews.m (modified) (13 diffs)
- WiredClient/trunk/WCPreferences.h (modified) (4 diffs)
- WiredClient/trunk/WCPreferences.m (modified) (17 diffs)
- WiredClient/trunk/WCPreview.h (modified) (2 diffs)
- WiredClient/trunk/WCPreview.m (modified) (3 diffs)
- WiredClient/trunk/WCPrivateChat.h (modified) (2 diffs)
- WiredClient/trunk/WCPrivateChat.m (modified) (5 diffs)
- WiredClient/trunk/WCPublicChat.h (modified) (3 diffs)
- WiredClient/trunk/WCPublicChat.m (modified) (10 diffs)
- WiredClient/trunk/WCSearch.h (modified) (2 diffs)
- WiredClient/trunk/WCSearch.m (modified) (4 diffs)
- WiredClient/trunk/WCServer.h (modified) (2 diffs)
- WiredClient/trunk/WCServer.m (modified) (2 diffs)
- WiredClient/trunk/WCServerInfo.h (modified) (2 diffs)
- WiredClient/trunk/WCServerInfo.m (modified) (3 diffs)
- WiredClient/trunk/WCSettings.h (modified) (2 diffs)
- WiredClient/trunk/WCSettings.m (modified) (1 diff)
- WiredClient/trunk/WCSocket.h (modified) (5 diffs)
- WiredClient/trunk/WCSocket.m (modified) (3 diffs)
- WiredClient/trunk/WCStats.h (modified) (2 diffs)
- WiredClient/trunk/WCStats.m (modified) (6 diffs)
- WiredClient/trunk/WCTextFinder.h (deleted)
- WiredClient/trunk/WCTextFinder.m (deleted)
- WiredClient/trunk/WCTopic.h (modified) (2 diffs)
- WiredClient/trunk/WCTopic.m (modified) (1 diff)
- WiredClient/trunk/WCTracker.h (modified) (2 diffs)
- WiredClient/trunk/WCTracker.m (modified) (2 diffs)
- WiredClient/trunk/WCTrackers.h (modified) (2 diffs)
- WiredClient/trunk/WCTrackers.m (modified) (13 diffs)
- WiredClient/trunk/WCTransfer.h (modified) (2 diffs)
- WiredClient/trunk/WCTransfer.m (modified) (1 diff)
- WiredClient/trunk/WCTransferCell.h (modified) (2 diffs)
- WiredClient/trunk/WCTransferCell.m (modified) (1 diff)
- WiredClient/trunk/WCTransfers.h (modified) (3 diffs)
- WiredClient/trunk/WCTransfers.m (modified) (20 diffs)
- WiredClient/trunk/WCUser.h (modified) (2 diffs)
- WiredClient/trunk/WCUser.m (modified) (1 diff)
- WiredClient/trunk/WCUserCell.h (modified) (2 diffs)
- WiredClient/trunk/WCUserCell.m (modified) (1 diff)
- WiredClient/trunk/WCUserInfo.h (modified) (2 diffs)
- WiredClient/trunk/WCUserInfo.m (modified) (4 diffs)
- WiredClient/trunk/WiredClient.xcode (deleted)
- WiredClient/trunk/WiredClient.xcodeproj (added)
- WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj (added)
- WiredClient/trunk/WiredIcons.icns (deleted)
- WiredClient/trunk/main.m (modified) (1 diff)
- WiredClient/trunk/makedmg.sh (deleted)
- WiredClient/trunk/prefix.pch (modified) (2 diffs)
- WiredClient/trunk/version.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/English.lproj/Console.nib/info.nib
r1616 r3395 6 6 <string>440 250 390 311 0 0 1280 1002 </string> 7 7 <key>IBFramework Version</key> 8 <string> 364.0</string>8 <string>439.0</string> 9 9 <key>IBOpenObjects</key> 10 10 <array> … … 12 12 </array> 13 13 <key>IBSystem Version</key> 14 <string> 7R28</string>14 <string>8B15</string> 15 15 </dict> 16 16 </plist> WiredClient/trunk/English.lproj/InfoPlist.strings
r1616 r3395 1 1 /* Localized versions of Info.plist keys */ 2 2 CFBundleName = "Wired Client"; 3 CFBundleShortVersionString = " 1.3";4 CFBundleGetInfoString = " 1.3, Copyright © 2003-2004Zanka Software.";5 NSHumanReadableCopyright = "Copyright © 2003-2004Zanka Software.";3 CFBundleShortVersionString = "Wired Client 1.3"; 4 CFBundleGetInfoString = "Wired Client 1.3, Copyright 2003-2005 Zanka Software."; 5 NSHumanReadableCopyright = "Copyright 2003-2005 Zanka Software."; 6 6 7 7 /* File types */ WiredClient/trunk/English.lproj/MainMenu.nib/classes.nib
r1616 r3395 3 3 { 4 4 ACTIONS = { 5 "_cycleWindows" = id;6 5 accounts = id; 7 6 addBookmark = id; … … 38 37 SUPERCLASS = NSWindow; 39 38 }, 39 {CLASS = WCApplication; LANGUAGE = ObjC; SUPERCLASS = ZAApplication; }, 40 40 { 41 41 ACTIONS = { … … 69 69 "_loginTextField" = NSTextField; 70 70 "_passwordTextField" = NSSecureTextField; 71 "_progressIndicator" = NSProgressIndicator;72 71 }; 73 72 SUPERCLASS = ZAWindowController; 73 }, 74 { 75 ACTIONS = {orderFrontReleaseNotesWindow = id; }; 76 CLASS = ZAApplication; 77 LANGUAGE = ObjC; 78 OUTLETS = {"_releaseNotesTextView" = NSTextView; "_releaseNotesWindow" = NSWindow; }; 79 SUPERCLASS = NSApplication; 74 80 }, 75 81 { WiredClient/trunk/English.lproj/MainMenu.nib/info.nib
r1616 r3395 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 178 184412 357 0 0 1280 1002 </string>6 <string>541 177 412 357 0 0 1280 1002 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>29</key> 10 <string> 457 884 534 44 0 0 1280 1002 </string>10 <string>266 875 614 44 0 0 1280 1002 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string> 364.0</string>13 <string>439.0</string> 14 14 <key>IBLockedObjects</key> 15 15 <array> … … 18 18 <key>IBOpenObjects</key> 19 19 <array> 20 <integer>574</integer> 20 21 <integer>29</integer> 21 <integer>574</integer>22 22 </array> 23 23 <key>IBSystem Version</key> 24 <string> 7R28</string>24 <string>8B15</string> 25 25 </dict> 26 26 </plist> WiredClient/trunk/English.lproj/Messages.nib/info.nib
r1616 r3395 6 6 <string>706 97 427 424 0 0 1680 1028 </string> 7 7 <key>IBFramework Version</key> 8 <string> 364.0</string>8 <string>439.0</string> 9 9 <key>IBOpenObjects</key> 10 10 <array> 11 <integer>86</integer>12 11 <integer>67</integer> 13 12 <integer>135</integer> 13 <integer>86</integer> 14 14 </array> 15 15 <key>IBSystem Version</key> 16 <string> 7R28</string>16 <string>8B15</string> 17 17 </dict> 18 18 </plist> WiredClient/trunk/English.lproj/News.nib/info.nib
r1616 r3395 6 6 <string>241 136 401 347 0 0 1280 1002 </string> 7 7 <key>IBFramework Version</key> 8 <string> 364.0</string>8 <string>439.0</string> 9 9 <key>IBOpenObjects</key> 10 10 <array> … … 13 13 </array> 14 14 <key>IBSystem Version</key> 15 <string> 7R28</string>15 <string>8B15</string> 16 16 </dict> 17 17 </plist> WiredClient/trunk/English.lproj/Preferences.nib/classes.nib
r1616 r3395 43 43 "_bookmarksNameTableColumn" = NSTableColumn; 44 44 "_bookmarksNameTextField" = NSTextField; 45 "_bookmarksNickTextField" = ZADefaultTextField;45 "_bookmarksNickTextField" = NSTextField; 46 46 "_bookmarksPasswordTextField" = NSSecureTextField; 47 "_bookmarksStatusTextField" = ZADefaultTextField;47 "_bookmarksStatusTextField" = NSTextField; 48 48 "_bookmarksTableView" = NSTableView; 49 49 "_bounceInDockButton" = NSButton; WiredClient/trunk/English.lproj/Preferences.nib/info.nib
r1736 r3395 6 6 <string>519 196 356 294 0 0 1280 1002 </string> 7 7 <key>IBFramework Version</key> 8 <string> 364.0</string>8 <string>439.0</string> 9 9 <key>IBLockedObjects</key> 10 10 <array/> … … 14 14 </array> 15 15 <key>IBSystem Version</key> 16 <string> 7U16</string>16 <string>8B15</string> 17 17 </dict> 18 18 </plist> WiredClient/trunk/English.lproj/PublicChat.nib/info.nib
r1654 r3395 8 8 <dict> 9 9 <key>105</key> 10 <string>736 221 184 1 680 0 1280 1002 </string>10 <string>736 221 184 187 0 0 1280 1002 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> … … 18 18 <key>IBOpenObjects</key> 19 19 <array> 20 <integer>10</integer> 20 21 <integer>105</integer> 21 <integer>10</integer>22 22 </array> 23 23 <key>IBSystem Version</key> 24 <string>7 S215</string>24 <string>7U16</string> 25 25 </dict> 26 26 </plist> WiredClient/trunk/Info.plist
r1355 r3395 7 7 <key>CFBundleDocumentTypes</key> 8 8 <array> 9 <dict>10 <key>CFBundleTypeExtensions</key>11 <array>12 <string>WiredIcons</string>13 </array>14 <key>CFBundleTypeIconFile</key>15 <string>WiredIcons</string>16 <key>CFBundleTypeName</key>17 <string>Wired Icon Pack</string>18 <key>CFBundleTypeRole</key>19 <string>Viewer</string>20 </dict>21 9 <dict> 22 10 <key>CFBundleTypeExtensions</key> … … 37 25 <string>WiredClient</string> 38 26 <key>CFBundleIdentifier</key> 27 #ifdef RELEASE 39 28 <string>com.zanka.WiredClient</string> 29 #else 30 <string>com.zanka.WiredClientDebug</string> 31 #endif 40 32 <key>CFBundleInfoDictionaryVersion</key> 41 33 <string>6.0</string> WiredClient/trunk/WCAboutWindow.h
r1616 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * … … 29 29 @interface WCAboutWindow : NSWindow 30 30 31 + (WCAboutWindow *) aboutWindow;31 + (WCAboutWindow *)aboutWindow; 32 32 33 33 @end WiredClient/trunk/WCAboutWindow.m
r1734 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * WiredClient/trunk/WCAccount.h
r1616 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * … … 41 41 42 42 43 - (id) initWithType:(WCAccountType)type;43 - (id)initWithType:(WCAccountType)type; 44 44 45 - (void) setType:(WCAccountType)type;46 - (WCAccountType) type;47 - (void) setName:(NSString *)name;48 - (NSString *) name;49 - (void) setPrivileges:(NSArray *)privileges;50 - (NSArray *) privileges;45 - (void)setType:(WCAccountType)type; 46 - (WCAccountType)type; 47 - (void)setName:(NSString *)name; 48 - (NSString *)name; 49 - (void)setPrivileges:(NSArray *)privileges; 50 - (NSArray *)privileges; 51 51 52 - (BOOL) getUserInfo;53 - (BOOL) broadcast;54 - (BOOL) postNews;55 - (BOOL) clearNews;56 - (BOOL) download;57 - (BOOL) upload;58 - (BOOL) uploadAnywhere;59 - (BOOL) createFolders;60 - (BOOL) alterFiles;61 - (BOOL) deleteFiles;62 - (BOOL) viewDropBoxes;63 - (BOOL) createAccounts;64 - (BOOL) editAccounts;65 - (BOOL) deleteAccounts;66 - (BOOL) elevatePrivileges;67 - (BOOL) kickUsers;68 - (BOOL) banUsers;69 - (BOOL) cannotBeKicked;70 - (BOOL) setTopic;52 - (BOOL)getUserInfo; 53 - (BOOL)broadcast; 54 - (BOOL)postNews; 55 - (BOOL)clearNews; 56 - (BOOL)download; 57 - (BOOL)upload; 58 - (BOOL)uploadAnywhere; 59 - (BOOL)createFolders; 60 - (BOOL)alterFiles; 61 - (BOOL)deleteFiles; 62 - (BOOL)viewDropBoxes; 63 - (BOOL)createAccounts; 64 - (BOOL)editAccounts; 65 - (BOOL)deleteAccounts; 66 - (BOOL)elevatePrivileges; 67 - (BOOL)kickUsers; 68 - (BOOL)banUsers; 69 - (BOOL)cannotBeKicked; 70 - (BOOL)setTopic; 71 71 72 72 @end WiredClient/trunk/WCAccount.m
r1616 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * WiredClient/trunk/WCAccountEditor.h
r1616 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * … … 27 27 */ 28 28 29 @class WCAccount , WCConnection;29 @class WCAccount; 30 30 31 31 @interface WCAccountEditor : WCConnectionController { … … 75 75 76 76 77 #define WCAccountEditorReceivedUser @"WCAccountEditorReceivedUser" 78 #define WCAccountEditorReceivedGroup @"WCAccountEditorReceivedGroup" 77 - (id)initAccountEditorWithConnection:(WCServerConnection *)connection; 78 - (id)initAccountEditorWithConnection:(WCServerConnection *)connection edit:(WCAccount *)account; 79 79 80 - (id) initWithConnection:(WCConnection *)connection; 81 - (id) initWithConnection:(WCConnection *)connection edit:(WCAccount *)account; 82 83 - (IBAction) create:(id)sender; 84 - (IBAction) edit:(id)sender; 85 - (IBAction) selectAll:(id)sender; 86 - (IBAction) type:(id)sender; 87 - (IBAction) group:(id)sender; 80 - (IBAction)create:(id)sender; 81 - (IBAction)edit:(id)sender; 82 - (IBAction)selectAll:(id)sender; 83 - (IBAction)type:(id)sender; 84 - (IBAction)group:(id)sender; 88 85 89 86 @end WiredClient/trunk/WCAccountEditor.m
r1616 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * … … 34 34 @implementation WCAccountEditor 35 35 36 - (id)init WithConnection:(WCConnection *)connection {37 return [self init WithConnection:connection edit:NULL];38 } 39 40 41 42 - (id)init WithConnection:(WCConnection *)connection edit:(WCAccount *)account {36 - (id)initAccountEditorWithConnection:(WCServerConnection *)connection { 37 return [self initAccountEditorWithConnection:connection edit:NULL]; 38 } 39 40 41 42 - (id)initAccountEditorWithConnection:(WCServerConnection *)connection edit:(WCAccount *)account { 43 43 self = [super initWithWindowNibName:@"AccountEditor" 44 44 name:NSLS(@"Account Editor", @"Account editor window title") … … 66 66 [self type:self]; 67 67 68 [[self connection] sendCommand:WCReadUserCommand 69 withArgument:[_account name] 70 withSender:self]; 68 [[self connection] sendCommand:WCReadUserCommand withArgument:[_account name]]; 71 69 } else { 72 70 // --- read group … … 74 72 [self type:self]; 75 73 76 [[self connection] sendCommand:WCReadGroupCommand 77 withArgument:[_account name] 78 withSender:self]; 74 [[self connection] sendCommand:WCReadGroupCommand withArgument:[_account name]]; 79 75 } 80 76 … … 338 334 @"0", 339 335 [_setTopicButton stringValue], 340 NULL] 341 withSender:self]; 336 NULL]]; 342 337 } 343 338 else if([_typePopUpButton selectedItem] == _groupMenuItem) { … … 368 363 @"0", 369 364 [_setTopicButton stringValue], 370 NULL] 371 withSender:self]; 365 NULL]]; 372 366 } 373 367 … … 427 421 @"0", 428 422 [_setTopicButton stringValue], 429 NULL] 430 withSender:self]; 423 NULL]]; 431 424 } else { 432 425 [[self connection] sendCommand:WCEditGroupCommand … … 455 448 @"0", 456 449 @"0", 457 [_setTopicButton stringValue]] 458 withSender:self]; 450 [_setTopicButton stringValue]]]; 459 451 } 460 452 … … 607 599 } else { 608 600 [[self connection] sendCommand:WCReadGroupCommand 609 withArgument:[[_groupPopUpButton selectedItem] title] 610 withSender:self]; 601 withArgument:[[_groupPopUpButton selectedItem] title]]; 611 602 612 603 // --- disable buttons WiredClient/trunk/WCAccounts.h
r1654 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * … … 26 26 * POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 @class WCConnection;30 28 31 29 @interface WCAccounts : WCConnectionController { … … 53 51 #define WCAccountsShouldReload @"WCAccountsShouldReload" 54 52 55 #define WCAccountsReceivedUser @"WCAccountsReceivedUser"56 #define WCAccountsCompletedUsers @"WCAccountsCompletedUsers"57 #define WCAccountsReceivedGroup @"WCAccountsReceivedGroup"58 #define WCAccountsCompletedGroups @"WCAccountsCompletedGroups"59 53 54 - (id)initAccountsWithConnection:(WCServerConnection *)connection; 60 55 61 - (id) initWithConnection:(WCConnection *)connection; 56 - (NSArray *)accounts; 57 - (NSArray *)users; 58 - (NSArray *)groups; 59 - (WCAccount *)userWithName:(NSString *)name; 60 - (WCAccount *)groupWithName:(NSString *)name; 62 61 63 - (NSArray *) accounts; 64 - (NSArray *) users; 65 - (NSArray *) groups; 66 - (WCAccount *) userWithName:(NSString *)name; 67 - (WCAccount *) groupWithName:(NSString *)name; 68 69 - (IBAction) add:(id)sender; 70 - (IBAction) edit:(id)sender; 71 - (IBAction) delete:(id)sender; 72 - (IBAction) reload:(id)sender; 62 - (IBAction)add:(id)sender; 63 - (IBAction)edit:(id)sender; 64 - (IBAction)delete:(id)sender; 65 - (IBAction)reload:(id)sender; 73 66 74 67 @end WiredClient/trunk/WCAccounts.m
r1654 r3395 2 2 3 3 /* 4 * Copyright (c) 2003-200 4Axel Andersson4 * Copyright (c) 2003-2005 Axel Andersson 5 5 * All rights reserved. 6 6 * … … 33 33 @interface WCAccounts(Private) 34 34 35 - (void) update;36 - (void) updateStatus;37 - (void) validate;38 - (WCAccount *) selectedAccount;39 - (NSArray *) selectedAccounts;40 - (void) sortAccounts;35 - (void)update; 36 - (void)updateStatus; 37 - (void)validate; 38 - (WCAccount *)selectedAccount; 39 - (NSArray *)selectedAccounts; 40 - (void)sortAccounts; 41 41 42 42 @end … … 45 45 @implementation WCAccounts 46 46 47 - (id)init WithConnection:(WCConnection *)connection {47 - (id)initAccountsWithConnection:(WCServerConnection *)connection { 48 48 self = [super initWithWindowNibName:@"Accounts" 49 49 name:NSLS(@"Accounts", @"Accounts window title") … … 125 125 126 126 127 - (void)connectionHasAttached:(NSNotification *)notification { 128 } 129 130 131 132 - (void)connectionShouldTerminate:(NSNotification *)notification { 133 [_accountsTableView setDataSource:NULL]; 134 135 [self close]; 136 [self release]; 137 } 138 139 140 141 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 127 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 128 [_allAccounts removeAllObjects]; 129 [_shownAccounts removeAllObjects]; 130 131 _received = NO; 132 } 133 134 135 136 - (void)serverConnectionServerInfoDidChange:(NSNotification *)notification { 142 137 [[self window] setTitle:[[self connection] name] withSubtitle:[self name]]; 143 138 } … … 145 140 146 141 147 - (void) connectionPrivilegesDidChange:(NSNotification *)notification {142 - (void)serverConnectionPrivilegesDidChange:(NSNotification *)notification { 148 143 [self validate]; 149 144 … … 159 154 160 155 156 - (void)serverConnectionWillTerminate:(NSNotification *)notification { 157 [self close]; 158 [self autorelease]; 159 } 160 161 162 161 163 - (void)preferencesDidChange:(NSNotification *)notification { 162 164 [self update]; … … 179 181 name = [arguments safeObjectAtIndex:0]; 180 182 183 // --- add user 181 184 account = [[WCAccount alloc] initWithType:WCAccountTypeUser]; 182 185 [account setName:name]; … … 202 205 name = [arguments safeObjectAtIndex:0]; 203 206 207
