Changeset 387 for trunk/macosx/Controller.m
- Timestamp:
- Jun 17, 2006, 11:00:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r384 r387 888 888 - (void) setQuickLimitGlobal: (id) sender 889 889 { 890 NSString * title = [sender title]; 891 [fPrefsController setQuickLimit: [[title substringToIndex: [title length] 892 - [@" KB/s" length]] intValue] 893 type: [sender menu] == fUploadMenu ? @"Upload" : @"Download"]; 890 [fPrefsController setQuickLimit: [[sender title] intValue] 891 type: [sender menu] == fUploadMenu ? @"Upload" : @"Download"]; 894 892 } 895 893 … … 897 895 { 898 896 NSDictionary * dict = [notification object]; 899 900 BOOL enable = [[dict objectForKey: @"Enable"] boolValue];901 int limit = [[dict objectForKey: @"Limit"] intValue];902 897 903 898 NSMenuItem * limitItem, * noLimitItem; … … 912 907 noLimitItem = fDownloadNoLimitItem; 913 908 } 909 910 BOOL enable = [[dict objectForKey: @"Enable"] boolValue]; 914 911 [limitItem setState: enable ? NSOnState : NSOffState]; 915 912 [noLimitItem setState: !enable ? NSOnState : NSOffState]; … … 1438 1435 - (void) linkHomepage: (id) sender 1439 1436 { 1440 [[NSWorkspace sharedWorkspace] openURL: [NSURL 1441 URLWithString: WEBSITE_URL]]; 1437 [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: WEBSITE_URL]]; 1442 1438 } 1443 1439 1444 1440 - (void) linkForums: (id) sender 1445 1441 { 1446 [[NSWorkspace sharedWorkspace] openURL: [NSURL 1447 URLWithString: FORUM_URL]]; 1442 [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: FORUM_URL]]; 1448 1443 } 1449 1444
Note: See TracChangeset
for help on using the changeset viewer.