Changeset 4496
- Timestamp:
- 02/06/07 12:39:22 (1 year ago)
- Files:
-
- WiredServer/trunk/WCAccounts.h (modified) (1 diff)
- WiredServer/trunk/WCAccounts.m (modified) (1 diff)
- WiredServer/trunk/WCAccountsController.m (modified) (7 diffs)
- WiredServer/trunk/WCConfigController.m (modified) (8 diffs)
- WiredServer/trunk/WCDashboardController.m (modified) (1 diff)
- WiredServer/trunk/WiredServer.xcodeproj/project.pbxproj (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredServer/trunk/WCAccounts.h
r4486 r4496 117 117 - (void)deleteAccount:(WCAccount *)account; 118 118 119 - ( unsigned int)count;119 - (NSUInteger)count; 120 120 - (NSArray *)accounts; 121 121 - (WCAccount *)accountWithName:(NSString *)name; WiredServer/trunk/WCAccounts.m
r4486 r4496 528 528 #pragma mark - 529 529 530 - ( unsigned int)count {530 - (NSUInteger)count { 531 531 return [_accounts count]; 532 532 } WiredServer/trunk/WCAccountsController.m
r4251 r4496 56 56 57 57 - (WCAccount *)_selectedAccount { 58 introw;58 NSInteger row; 59 59 60 60 row = [_tableView selectedRow]; … … 122 122 123 123 if([account downloadSpeed] > 0) 124 [_downloadSpeedTextField setIntValue:[account downloadSpeed] / ( double) 1024.0];124 [_downloadSpeedTextField setIntValue:[account downloadSpeed] / (float) 1024.0f]; 125 125 else 126 126 [_downloadSpeedTextField setStringValue:@""]; … … 132 132 133 133 if([account uploadSpeed] > 0) 134 [_uploadSpeedTextField setIntValue:[account uploadSpeed] / ( double) 1024.0];134 [_uploadSpeedTextField setIntValue:[account uploadSpeed] / (float) 1024.0f]; 135 135 else 136 136 [_uploadSpeedTextField setStringValue:@""]; … … 477 477 NSEnumerator *enumerator; 478 478 WCAccount *account, *user; 479 introw;479 NSInteger row; 480 480 481 481 if(returnCode == NSAlertDefaultReturn) { … … 563 563 #pragma mark - 564 564 565 - ( int)numberOfRowsInTableView:(NSTableView *)tableView {565 - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView { 566 566 return [_accounts count]; 567 567 } … … 569 569 570 570 571 - (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:( int)row {571 - (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { 572 572 WCAccount *account; 573 573 … … 584 584 585 585 586 - (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:( int)row {586 - (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(NSInteger)row { 587 587 [self _unselectAccount:[self _selectedAccount]]; 588 588 WiredServer/trunk/WCConfigController.m
r4181 r4496 58 58 59 59 - (void)_update { 60 BOOL enabled;61 intmethod;60 BOOL enabled; 61 NSInteger method; 62 62 63 63 enabled = [[WCDashboardController dashboardController] isAuthorized]; … … 205 205 206 206 if([_config intForKey:@"total download speed"] > 0) 207 [_downloadSpeedTextField setIntValue:[_config doubleForKey:@"total download speed"] / 1024 ];207 [_downloadSpeedTextField setIntValue:[_config doubleForKey:@"total download speed"] / 1024.0]; 208 208 209 209 [_totalUploadsTextField setStringValue:[_config stringForKey:@"total uploads"]]; … … 211 211 212 212 if([_config intForKey:@"total upload speed"] > 0) 213 [_uploadSpeedTextField setIntValue:[_config doubleForKey:@"total upload speed"] / 1024 ];213 [_uploadSpeedTextField setIntValue:[_config doubleForKey:@"total upload speed"] / 1024.0]; 214 214 215 215 [_filesTextField setStringValue:[_config pathForKey:@"files"]]; … … 790 790 - (IBAction)addTracker:(id)sender { 791 791 NSMutableArray *tracker; 792 introw;792 NSInteger row; 793 793 794 794 tracker = [_config arrayForKey:@"tracker"]; … … 853 853 #pragma mark - 854 854 855 - ( int)numberOfRowsInTableView:(NSTableView *)tableView {855 - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView { 856 856 return [[_config arrayForKey:@"tracker"] count]; 857 857 } … … 859 859 860 860 861 - (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:( int)row {861 - (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { 862 862 NSString *tracker, *host, *category; 863 863 WIURL *url; … … 884 884 885 885 886 - (void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:( int)row {886 - (void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { 887 887 NSString *tracker, *value = NULL; 888 888 WIURL *url; … … 914 914 915 915 916 - (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:( int)row {916 - (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { 917 917 BOOL enabled; 918 918 WiredServer/trunk/WCDashboardController.m
r4360 r4496 224 224 FILE *fp = NULL; 225 225 char **argv; 226 int i, argc, status; 226 NSUInteger i, argc; 227 int status; 227 228 228 229 argc = [arguments count]; WiredServer/trunk/WiredServer.xcodeproj/project.pbxproj
r4489 r4496 149 149 containerPortal = 089C1669FE841209C02AAC07 /* Project object */; 150 150 proxyType = 1; 151 remoteGlobalIDString = A5FEE2820B7870E000199A37 /* wired */;151 remoteGlobalIDString = A5FEE2820B7870E000199A37; 152 152 remoteInfo = wired; 153 153 }; … … 512 512 isa = PBXProject; 513 513 buildConfigurationList = A5BE6CFF0864B5A000DA5C89 /* Build configuration list for PBXProject "WiredServer" */; 514 compatibilityVersion = "Xcode 2.4"; 514 515 hasScannedForEncodings = 1; 515 516 knownRegions = ( … … 528 529 }, 529 530 ); 531 projectRoot = ""; 532 shouldCheckCompatibility = 1; 530 533 targets = ( 531 534 8D202CE80486D31800D8A456 /* Wired Preference Pane */, … … 924 927 name = Release/Universal; 925 928 }; 926 A5BE6CEC0864B5A000DA5C89 /* Debug/Native/32 */ = { 929 A5BA8DE70B78947700043E39 /* Debug/Native/64 */ = { 930 isa = XCBuildConfiguration; 931 baseConfigurationReference = A5BE6D1A0864B5FB00DA5C89 /* WiredServer.xcconfig */; 932 buildSettings = { 933 ARCHS = "$(NATIVE_ARCH_64_BIT)"; 934 COPY_PHASE_STRIP = NO; 935 GCC_OPTIMIZATION_LEVEL = 0; 936 GCC_PREPROCESSOR_DEFINITIONS = DEBUG; 937 GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 938 ZERO_LINK = YES; 939 }; 940 name = Debug/Native/64; 941 }; 942 A5BA8DE80B78947700043E39 /* Debug/Native/64 */ = { 943 isa = XCBuildConfiguration; 944 buildSettings = { 945 COPY_PHASE_STRIP = NO; 946 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 947 OPTIMIZATION_CFLAGS = "-O0"; 948 OTHER_CFLAGS = ""; 949 OTHER_LDFLAGS = ""; 950 OTHER_REZFLAGS = ""; 951 PRODUCT_NAME = "Wired Additions"; 952 SECTORDER_FLAGS = ""; 953 WARNING_CFLAGS = ( 954 "-Wmost", 955 "-Wno-four-char-constants", 956 "-Wno-unknown-pragmas", 957 ); 958 }; 959 name = Debug/Native/64; 960 }; 961 A5BA8DE90B78947700043E39 /* Debug/Native/64 */ = { 927 962 isa = XCBuildConfiguration; 928 963 buildSettings = { … … 939 974 WRAPPER_EXTENSION = prefPane; 940 975 }; 941 name = Debug/Native/32; 942 }; 943 A5BE6CEE0864B5A000DA5C89 /* Release/Universal */ = { 976 name = Debug/Native/64; 977 }; 978 A5BA8DEA0B78947700043E39 /* Debug/Native/64 */ = { 979 isa = XCBuildConfiguration; 980 buildSettings = { 981 PRODUCT_NAME = "Wired Server"; 982 }; 983 name = Debug/Native/64; 984 }; 985 A5BA8DEB0B78947700043E39 /* Debug/Native/64 */ = { 986 isa = XCBuildConfiguration; 987 buildSettings = { 988 COPY_PHASE_STRIP = NO; 989 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 990 OPTIMIZATION_CFLAGS = "-O0"; 991 OTHER_CFLAGS = ""; 992 OTHER_LDFLAGS = ""; 993 OTHER_REZFLAGS = ""; 994 PRODUCT_NAME = "Wired Server"; 995 SECTORDER_FLAGS = ""; 996 WARNING_CFLAGS = ( 997 "-Wmost", 998 "-Wno-four-char-constants", 999 "-Wno-unknown-pragmas", 1000 ); 1001 }; 1002 name = Debug/Native/64; 1003 }; 1004 A5BA8DEC0B78947700043E39 /* Debug/Native/64 */ = { 1005 isa = XCBuildConfiguration; 1006 buildSettings = { 1007 COPY_PHASE_STRIP = NO; 1008 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1009 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 1010 GCC_OPTIMIZATION_LEVEL = 0; 1011 OTHER_CFLAGS = "-DDEVELOPMENT"; 1012 OTHER_LDFLAGS = ""; 1013 OTHER_REZFLAGS = ""; 1014 PRODUCT_NAME = Localization; 1015 SECTORDER_FLAGS = ""; 1016 WARNING_CFLAGS = ( 1017 "-Wmost", 1018 "-Wno-four-char-constants", 1019 "-Wno-unknown-pragmas", 1020 ); 1021 ZERO_LINK = YES; 1022 }; 1023 name = Debug/Native/64; 1024 }; 1025 A5BA8DED0B78947700043E39 /* Debug/Native/64 */ = { 1026 isa = XCBuildConfiguration; 1027 buildSettings = { 1028 COPY_PHASE_STRIP = NO; 1029 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1030 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 1031 GCC_OPTIMIZATION_LEVEL = 0; 1032 OTHER_CFLAGS = "-DDEVELOPMENT"; 1033 OTHER_LDFLAGS = ""; 1034 OTHER_REZFLAGS = ""; 1035 PRODUCT_NAME = Packaging; 1036 SECTORDER_FLAGS = ""; 1037 WARNING_CFLAGS = ( 1038 "-Wmost", 1039 "-Wno-four-char-constants", 1040 "-Wno-unknown-pragmas", 1041 ); 1042 ZERO_LINK = YES; 1043 }; 1044 name = Debug/Native/64; 1045 }; 1046 A5BE6CEC0864B5A000DA5C89 /* Debug/Native/32 */ = { 944 1047 isa = XCBuildConfiguration; 945 1048 buildSettings = { … … 956 1059 WRAPPER_EXTENSION = prefPane; 957 1060 }; 1061 name = Debug/Native/32; 1062 }; 1063 A5BE6CEE0864B5A000DA5C89 /* Release/Universal */ = { 1064 isa = XCBuildConfiguration; 1065 buildSettings = { 1066 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1067 GCC_PREFIX_HEADER = PreferencePane/prefix.pch; 1068 HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)/WiredAdditions.framework/Headers\""; 1069 INFOPLIST_FILE = PreferencePane/Info.plist; 1070 OTHER_LDFLAGS = ( 1071 "-lcrypto", 1072 "-undefined", 1073 dynamic_lookup, 1074 ); 1075 PRODUCT_NAME = Wired; 1076 WRAPPER_EXTENSION = prefPane; 1077 }; 958 1078 name = Release/Universal; 959 1079 }; … … 1049 1169 GCC_OPTIMIZATION_LEVEL = 0; 1050 1170 GCC_PREPROCESSOR_DEFINITIONS = DEBUG; 1171 GCC_WARN_64_TO_32_BIT_CONVERSION = NO; 1051 1172 ZERO_LINK = YES; 1052 1173 }; … … 1133 1254 buildConfigurations = ( 1134 1255 A50335B50864C9AC00CE6911 /* Debug/Native/32 */, 1256 A5BA8DEB0B78947700043E39 /* Debug/Native/64 */, 1135 1257 77437A170A371CD300588CD7 /* Test/Universal */, 1136 1258 A50335B70864C9AC00CE6911 /* Release/Universal */, … … 1143 1265 buildConfigurations = ( 1144 1266 A5BE6CEC0864B5A000DA5C89 /* Debug/Native/32 */, 1267 A5BA8DE90B78947700043E39 /* Debug/Native/64 */, 1145 1268 77437A160A371CD300588CD7 /* Test/Universal */, 1146 1269 A5BE6CEE0864B5A000DA5C89 /* Release/Universal */, … … 1153 1276 buildConfigurations = ( 1154 1277 A5BE6CF60864B5A000DA5C89 /* Debug/Native/32 */, 1278 A5BA8DEC0B78947700043E39 /* Debug/Native/64 */, 1155 1279 77437A180A371CD300588CD7 /* Test/Universal */, 1156 1280 A5BE6CF80864B5A000DA5C89 /* Release/Universal */, … … 1163 1287 buildConfigurations = ( 1164 1288 A5BE6CFB0864B5A000DA5C89 /* Debug/Native/32 */, 1289 A5BA8DED0B78947700043E39 /* Debug/Native/64 */, 1165 1290 77437A190A371CD300588CD7 /* Test/Universal */, 1166 1291 A5BE6CFD0864B5A000DA5C89 /* Release/Universal */, … … 1173 1298 buildConfigurations = ( 1174 1299 A5BE6D000864B5A000DA5C89 /* Debug/Native/32 */, 1300 A5BA8DE70B78947700043E39 /* Debug/Native/64 */, 1175 1301 77437A1A0A371CD300588CD7 /* Test/Universal */, 1176 1302 A5BE6D020864B5A000DA5C89 /* Release/Universal */, … … 1183 1309 buildConfigurations = ( 1184 1310 A5BE6D3F0864B64300DA5C89 /* Debug/Native/32 */, 1311 A5BA8DE80B78947700043E39 /* Debug/Native/64 */, 1185 1312 77437A150A371CD300588CD7 /* Test/Universal */, 1186 1313 A5BE6D410864B64300DA5C89 /* Release/Universal */, … … 1193 1320 buildConfigurations = ( 1194 1321 A5FEE2890B7870F400199A37 /* Debug/Native/32 */, 1322 A5BA8DEA0B78947700043E39 /* Debug/Native/64 */, 1195 1323 A5FEE28A0B7870F400199A37 /* Test/Universal */, 1196 1324 A5FEE28B0B7870F400199A37 /* Release/Universal */,
