Changeset 3395

Show
Ignore:
Timestamp:
01/03/06 19:08:32 (3 years ago)
Author:
morris
Message:

Build universal

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/English.lproj/Console.nib/info.nib

    r1616 r3395  
    66        <string>440 250 390 311 0 0 1280 1002 </string> 
    77        <key>IBFramework Version</key> 
    8         <string>364.0</string> 
     8        <string>439.0</string> 
    99        <key>IBOpenObjects</key> 
    1010        <array> 
     
    1212        </array> 
    1313        <key>IBSystem Version</key> 
    14         <string>7R28</string> 
     14        <string>8B15</string> 
    1515</dict> 
    1616</plist> 
  • WiredClient/trunk/English.lproj/InfoPlist.strings

    r1616 r3395  
    11/* Localized versions of Info.plist keys */ 
    22CFBundleName = "Wired Client"; 
    3 CFBundleShortVersionString = "1.3"; 
    4 CFBundleGetInfoString = "1.3, Copyright © 2003-2004 Zanka Software."; 
    5 NSHumanReadableCopyright = "Copyright © 2003-2004 Zanka Software."; 
     3CFBundleShortVersionString = "Wired Client 1.3"; 
     4CFBundleGetInfoString = "Wired Client 1.3, Copyright 2003-2005 Zanka Software."; 
     5NSHumanReadableCopyright = "Copyright 2003-2005 Zanka Software."; 
    66 
    77/* File types */ 
  • WiredClient/trunk/English.lproj/MainMenu.nib/classes.nib

    r1616 r3395  
    33        { 
    44            ACTIONS = { 
    5                 "_cycleWindows" = id;  
    65                accounts = id;  
    76                addBookmark = id;  
     
    3837            SUPERCLASS = NSWindow;  
    3938        },  
     39        {CLASS = WCApplication; LANGUAGE = ObjC; SUPERCLASS = ZAApplication; },  
    4040        { 
    4141            ACTIONS = { 
     
    6969                "_loginTextField" = NSTextField;  
    7070                "_passwordTextField" = NSSecureTextField;  
    71                 "_progressIndicator" = NSProgressIndicator;  
    7271            };  
    7372            SUPERCLASS = ZAWindowController;  
     73        },  
     74        { 
     75            ACTIONS = {orderFrontReleaseNotesWindow = id; };  
     76            CLASS = ZAApplication;  
     77            LANGUAGE = ObjC;  
     78            OUTLETS = {"_releaseNotesTextView" = NSTextView; "_releaseNotesWindow" = NSWindow; };  
     79            SUPERCLASS = NSApplication;  
    7480        },  
    7581        { 
  • WiredClient/trunk/English.lproj/MainMenu.nib/info.nib

    r1616 r3395  
    44<dict> 
    55        <key>IBDocumentLocation</key> 
    6         <string>178 184 412 357 0 0 1280 1002 </string> 
     6        <string>541 177 412 357 0 0 1280 1002 </string> 
    77        <key>IBEditorPositions</key> 
    88        <dict> 
    99                <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> 
    1111        </dict> 
    1212        <key>IBFramework Version</key> 
    13         <string>364.0</string> 
     13        <string>439.0</string> 
    1414        <key>IBLockedObjects</key> 
    1515        <array> 
     
    1818        <key>IBOpenObjects</key> 
    1919        <array> 
     20                <integer>574</integer> 
    2021                <integer>29</integer> 
    21                 <integer>574</integer> 
    2222        </array> 
    2323        <key>IBSystem Version</key> 
    24         <string>7R28</string> 
     24        <string>8B15</string> 
    2525</dict> 
    2626</plist> 
  • WiredClient/trunk/English.lproj/Messages.nib/info.nib

    r1616 r3395  
    66        <string>706 97 427 424 0 0 1680 1028 </string> 
    77        <key>IBFramework Version</key> 
    8         <string>364.0</string> 
     8        <string>439.0</string> 
    99        <key>IBOpenObjects</key> 
    1010        <array> 
    11                 <integer>86</integer> 
    1211                <integer>67</integer> 
    1312                <integer>135</integer> 
     13                <integer>86</integer> 
    1414        </array> 
    1515        <key>IBSystem Version</key> 
    16         <string>7R28</string> 
     16        <string>8B15</string> 
    1717</dict> 
    1818</plist> 
  • WiredClient/trunk/English.lproj/News.nib/info.nib

    r1616 r3395  
    66        <string>241 136 401 347 0 0 1280 1002 </string> 
    77        <key>IBFramework Version</key> 
    8         <string>364.0</string> 
     8        <string>439.0</string> 
    99        <key>IBOpenObjects</key> 
    1010        <array> 
     
    1313        </array> 
    1414        <key>IBSystem Version</key> 
    15         <string>7R28</string> 
     15        <string>8B15</string> 
    1616</dict> 
    1717</plist> 
  • WiredClient/trunk/English.lproj/Preferences.nib/classes.nib

    r1616 r3395  
    4343                "_bookmarksNameTableColumn" = NSTableColumn;  
    4444                "_bookmarksNameTextField" = NSTextField;  
    45                 "_bookmarksNickTextField" = ZADefaultTextField;  
     45                "_bookmarksNickTextField" = NSTextField;  
    4646                "_bookmarksPasswordTextField" = NSSecureTextField;  
    47                 "_bookmarksStatusTextField" = ZADefaultTextField;  
     47                "_bookmarksStatusTextField" = NSTextField;  
    4848                "_bookmarksTableView" = NSTableView;  
    4949                "_bounceInDockButton" = NSButton;  
  • WiredClient/trunk/English.lproj/Preferences.nib/info.nib

    r1736 r3395  
    66        <string>519 196 356 294 0 0 1280 1002 </string> 
    77        <key>IBFramework Version</key> 
    8         <string>364.0</string> 
     8        <string>439.0</string> 
    99        <key>IBLockedObjects</key> 
    1010        <array/> 
     
    1414        </array> 
    1515        <key>IBSystem Version</key> 
    16         <string>7U16</string> 
     16        <string>8B15</string> 
    1717</dict> 
    1818</plist> 
  • WiredClient/trunk/English.lproj/PublicChat.nib/info.nib

    r1654 r3395  
    88        <dict> 
    99                <key>105</key> 
    10                 <string>736 221 184 168 0 0 1280 1002 </string> 
     10                <string>736 221 184 187 0 0 1280 1002 </string> 
    1111        </dict> 
    1212        <key>IBFramework Version</key> 
     
    1818        <key>IBOpenObjects</key> 
    1919        <array> 
     20                <integer>10</integer> 
    2021                <integer>105</integer> 
    21                 <integer>10</integer> 
    2222        </array> 
    2323        <key>IBSystem Version</key> 
    24         <string>7S215</string> 
     24        <string>7U16</string> 
    2525</dict> 
    2626</plist> 
  • WiredClient/trunk/Info.plist

    r1355 r3395  
    77        <key>CFBundleDocumentTypes</key> 
    88        <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> 
    219                <dict> 
    2210                        <key>CFBundleTypeExtensions</key> 
     
    3725        <string>WiredClient</string> 
    3826        <key>CFBundleIdentifier</key> 
     27#ifdef RELEASE 
    3928        <string>com.zanka.WiredClient</string> 
     29#else 
     30        <string>com.zanka.WiredClientDebug</string> 
     31#endif 
    4032        <key>CFBundleInfoDictionaryVersion</key> 
    4133        <string>6.0</string> 
  • WiredClient/trunk/WCAboutWindow.h

    r1616 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    2929@interface WCAboutWindow : NSWindow 
    3030 
    31 + (WCAboutWindow *)                            aboutWindow; 
     31+ (WCAboutWindow *)aboutWindow; 
    3232 
    3333@end 
  • WiredClient/trunk/WCAboutWindow.m

    r1734 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • WiredClient/trunk/WCAccount.h

    r1616 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    4141 
    4242 
    43 - (id)                                                 initWithType:(WCAccountType)type; 
     43- (id)initWithType:(WCAccountType)type; 
    4444 
    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; 
    5151 
    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; 
    7171 
    7272@end 
  • WiredClient/trunk/WCAccount.m

    r1616 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
  • WiredClient/trunk/WCAccountEditor.h

    r1616 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    2727 */ 
    2828 
    29 @class WCAccount, WCConnection
     29@class WCAccount
    3030 
    3131@interface WCAccountEditor : WCConnectionController { 
     
    7575 
    7676 
    77 #define WCAccountEditorReceivedUser             @"WCAccountEditorReceivedUser" 
    78 #define WCAccountEditorReceivedGroup    @"WCAccountEditorReceivedGroup" 
     77- (id)initAccountEditorWithConnection:(WCServerConnection *)connection; 
     78- (id)initAccountEditorWithConnection:(WCServerConnection *)connection edit:(WCAccount *)account; 
    7979 
    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; 
    8885 
    8986@end 
  • WiredClient/trunk/WCAccountEditor.m

    r1616 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    3434@implementation WCAccountEditor 
    3535 
    36 - (id)initWithConnection:(WCConnection *)connection { 
    37         return [self initWithConnection:connection edit:NULL]; 
    38 } 
    39  
    40  
    41  
    42 - (id)initWithConnection:(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 { 
    4343        self = [super initWithWindowNibName:@"AccountEditor" 
    4444                                                                   name:NSLS(@"Account Editor", @"Account editor window title") 
     
    6666                        [self type:self]; 
    6767 
    68                         [[self connection] sendCommand:WCReadUserCommand 
    69                                                            withArgument:[_account name] 
    70                                                                  withSender:self]; 
     68                        [[self connection] sendCommand:WCReadUserCommand withArgument:[_account name]]; 
    7169                } else { 
    7270                        // --- read group 
     
    7472                        [self type:self]; 
    7573 
    76                         [[self connection] sendCommand:WCReadGroupCommand 
    77                                                            withArgument:[_account name] 
    78                                                                  withSender:self]; 
     74                        [[self connection] sendCommand:WCReadGroupCommand withArgument:[_account name]]; 
    7975                } 
    8076 
     
    338334                                                         @"0", 
    339335                                                         [_setTopicButton stringValue], 
    340                                                          NULL] 
    341                                                         withSender:self]; 
     336                                                         NULL]]; 
    342337        } 
    343338        else if([_typePopUpButton selectedItem] == _groupMenuItem) { 
     
    368363                                                         @"0", 
    369364                                                         [_setTopicButton stringValue], 
    370                                                          NULL] 
    371                                                         withSender:self]; 
     365                                                         NULL]]; 
    372366        } 
    373367 
     
    427421                                                          @"0", 
    428422                                                          [_setTopicButton stringValue], 
    429                                                           NULL] 
    430                                                         withSender:self]; 
     423                                                          NULL]]; 
    431424        } else { 
    432425                [[self connection] sendCommand:WCEditGroupCommand 
     
    455448                                                          @"0", 
    456449                                                          @"0", 
    457                                                           [_setTopicButton stringValue]] 
    458                                                         withSender:self]; 
     450                                                          [_setTopicButton stringValue]]]; 
    459451        } 
    460452 
     
    607599        } else { 
    608600                [[self connection] sendCommand:WCReadGroupCommand 
    609                                                   withArgument:[[_groupPopUpButton selectedItem] title] 
    610                                                         withSender:self]; 
     601                                                  withArgument:[[_groupPopUpButton selectedItem] title]]; 
    611602                 
    612603                // --- disable buttons 
  • WiredClient/trunk/WCAccounts.h

    r1654 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    2626 * POSSIBILITY OF SUCH DAMAGE. 
    2727 */ 
    28  
    29 @class WCConnection; 
    3028 
    3129@interface WCAccounts : WCConnectionController { 
     
    5351#define WCAccountsShouldReload                  @"WCAccountsShouldReload" 
    5452 
    55 #define WCAccountsReceivedUser                  @"WCAccountsReceivedUser" 
    56 #define WCAccountsCompletedUsers                @"WCAccountsCompletedUsers" 
    57 #define WCAccountsReceivedGroup                 @"WCAccountsReceivedGroup" 
    58 #define WCAccountsCompletedGroups               @"WCAccountsCompletedGroups" 
    5953 
     54- (id)initAccountsWithConnection:(WCServerConnection *)connection; 
    6055 
    61 - (id)                                                                  initWithConnection:(WCConnection *)connection; 
     56- (NSArray *)accounts; 
     57- (NSArray *)users; 
     58- (NSArray *)groups; 
     59- (WCAccount *)userWithName:(NSString *)name; 
     60- (WCAccount *)groupWithName:(NSString *)name; 
    6261 
    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; 
    7366 
    7467@end 
  • WiredClient/trunk/WCAccounts.m

    r1654 r3395  
    22 
    33/* 
    4  *  Copyright (c) 2003-2004 Axel Andersson 
     4 *  Copyright (c) 2003-2005 Axel Andersson 
    55 *  All rights reserved. 
    66 * 
     
    3333@interface WCAccounts(Private) 
    3434 
    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; 
    4141 
    4242@end 
     
    4545@implementation WCAccounts 
    4646 
    47 - (id)initWithConnection:(WCConnection *)connection { 
     47- (id)initAccountsWithConnection:(WCServerConnection *)connection { 
    4848        self = [super initWithWindowNibName:@"Accounts" 
    4949                                                                   name:NSLS(@"Accounts", @"Accounts window title") 
     
    125125 
    126126 
    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 { 
    142137        [[self window] setTitle:[[self connection] name] withSubtitle:[self name]]; 
    143138} 
     
    145140 
    146141 
    147 - (void)connectionPrivilegesDidChange:(NSNotification *)notification { 
     142- (void)serverConnectionPrivilegesDidChange:(NSNotification *)notification { 
    148143        [self validate]; 
    149144 
     
    159154 
    160155 
     156- (void)serverConnectionWillTerminate:(NSNotification *)notification { 
     157        [self close]; 
     158        [self autorelease]; 
     159} 
     160 
     161 
     162 
    161163- (void)preferencesDidChange:(NSNotification *)notification { 
    162164        [self update]; 
     
    179181        name = [arguments safeObjectAtIndex:0]; 
    180182 
     183        // --- add user 
    181184        account = [[WCAccount alloc] initWithType:WCAccountTypeUser]; 
    182185        [account setName:name]; 
     
    202205        name = [arguments safeObjectAtIndex:0]; 
    203206 
     207