Changeset 7508
- Timestamp:
- Dec 26, 2008, 5:57:51 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 13 deleted
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Transmission.xcodeproj/project.pbxproj
r7501 r7508 45 45 4D6DAAC6090CE00500F43C22 /* RevealOff.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D6DAAC4090CE00500F43C22 /* RevealOff.png */; }; 46 46 4D6DAAC7090CE00500F43C22 /* RevealOn.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D6DAAC5090CE00500F43C22 /* RevealOn.png */; }; 47 4D752E930913C949008EAAD4 /* Preferences.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D752E920913C949008EAAD4 /* Preferences.png */; };48 47 4D9A2BF009E16D21002D0FF9 /* libtransmission.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D18389709DEC0030047D688 /* libtransmission.a */; }; 49 48 4D9A2BF909E16D4F002D0FF9 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D2617F709DECE3D00D08EFA /* libcrypto.dylib */; }; … … 59 58 4DE5CC9D0980656F00BE280E /* NSStringAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DE5CC9C0980656F00BE280E /* NSStringAdditions.m */; }; 60 59 4DE5CCA70980735700BE280E /* Badger.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DE5CCA60980735700BE280E /* Badger.m */; }; 61 4DE5CCA90980739100BE280E /* Badge.png in Resources */ = {isa = PBXBuildFile; fileRef = 4DE5CCA80980739100BE280E /* Badge.png */; };62 60 4DE5CCBA0981D27700BE280E /* ResumeAll.png in Resources */ = {isa = PBXBuildFile; fileRef = 4DE5CCB80981D27700BE280E /* ResumeAll.png */; }; 63 61 4DE5CCBB0981D27700BE280E /* PauseAll.png in Resources */ = {isa = PBXBuildFile; fileRef = 4DE5CCB90981D27700BE280E /* PauseAll.png */; }; … … 83 81 A20BFFB70D091CC700CE5D2B /* ToolbarSegmentedCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A20BFFB60D091CC700CE5D2B /* ToolbarSegmentedCell.m */; }; 84 82 A21282A80CA6C66800EAEE0F /* StatusBarView.m in Sources */ = {isa = PBXBuildFile; fileRef = A21282A60CA6C66800EAEE0F /* StatusBarView.m */; }; 85 A215760B0C0D449A0057A26A /* NSBezierPathAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = A21576090C0D449A0057A26A /* NSBezierPathAdditions.m */; };86 83 A215BF5C0F02EBB800350CDB /* GroupRules.xib in Resources */ = {isa = PBXBuildFile; fileRef = A215BF5B0F02EBB800350CDB /* GroupRules.xib */; }; 87 84 A219798B0D07B78400438EA7 /* GroupToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = A219798A0D07B78400438EA7 /* GroupToolbarItem.m */; }; … … 92 89 A222E9870E6B21D9009FB003 /* BlocklistDownloaderViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A222E9860E6B21D9009FB003 /* BlocklistDownloaderViewController.m */; }; 93 90 A222EA7B0E6C32C4009FB003 /* BlocklistScheduler.m in Sources */ = {isa = PBXBuildFile; fileRef = A222EA7A0E6C32C4009FB003 /* BlocklistScheduler.m */; }; 94 A224D2640DAAC55F000954EA /* Peers.png in Resources */ = {isa = PBXBuildFile; fileRef = A224D2630DAAC55F000954EA /* Peers.png */; };95 91 A2265F420B5EF5F40093DDA5 /* FileNameCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A2265F400B5EF5F40093DDA5 /* FileNameCell.m */; }; 96 92 A226FDAC0D0CDF20005A7F71 /* libnatpmp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C7A118D0D0B2EB800B5701F /* libnatpmp.a */; }; … … 108 104 A233BD690D8CF2C7007EE7B4 /* StatsWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A233BD680D8CF2C7007EE7B4 /* StatsWindow.xib */; }; 109 105 A2385DD40BFE06C800B24EF6 /* DragOverlayWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = A2385DD20BFE06C800B24EF6 /* DragOverlayWindow.m */; }; 110 A2399CCD0CD3852300225B2B /* NSApplicationAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = A2399CCC0CD3852300225B2B /* NSApplicationAdditions.m */; };111 106 A23F4FF20D1D98AD002FCB97 /* PrefsWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A23F4FF00D1D98AD002FCB97 /* PrefsWindow.xib */; }; 112 107 A23F50020D1D99D7002FCB97 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = A23F50000D1D99D7002FCB97 /* MainMenu.xib */; }; … … 125 120 A25892640CF1F7E800CCCDDF /* StatsWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = A25892630CF1F7E800CCCDDF /* StatsWindowController.m */; }; 126 121 A259317E0A73B2CC002F4FE7 /* TransmissionHelp in Resources */ = {isa = PBXBuildFile; fileRef = A259316A0A73B2CC002F4FE7 /* TransmissionHelp */; }; 127 A25AFDE90D1038AD0092A1BA /* MenuLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = A25AFDE80D1038AD0092A1BA /* MenuLabel.m */; };128 122 A25D2CBD0CF4C73E0096A262 /* stats.c in Sources */ = {isa = PBXBuildFile; fileRef = A25D2CBB0CF4C7190096A262 /* stats.c */; }; 129 123 A25D2CBE0CF4C73E0096A262 /* stats.h in Headers */ = {isa = PBXBuildFile; fileRef = A25D2CBA0CF4C7190096A262 /* stats.h */; }; … … 147 141 A2623B420D3DC5930045D19A /* PauseHover.png in Resources */ = {isa = PBXBuildFile; fileRef = A2623B3E0D3DC5930045D19A /* PauseHover.png */; }; 148 142 A2623B4E0D3DC6DF0045D19A /* ActionHover.png in Resources */ = {isa = PBXBuildFile; fileRef = A2623B4D0D3DC6DF0045D19A /* ActionHover.png */; }; 149 A26397550D0F714300D36DF2 /* ActionPopUpButton.m in Sources */ = {isa = PBXBuildFile; fileRef = A26397540D0F714300D36DF2 /* ActionPopUpButton.m */; };150 143 A26AF21A0D2DA35A00FF7140 /* FileOutlineController.m in Sources */ = {isa = PBXBuildFile; fileRef = A26AF2190D2DA35A00FF7140 /* FileOutlineController.m */; }; 151 144 A26AF27E0D2DBDDF00FF7140 /* AddWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A26AF27C0D2DBDDF00FF7140 /* AddWindow.xib */; }; … … 172 165 A29DF8BD0DB2545A00D04E5A /* ggets.h in Headers */ = {isa = PBXBuildFile; fileRef = A2D307920D9EC4800051FD27 /* ggets.h */; }; 173 166 A29DF8BE0DB2545F00D04E5A /* verify.h in Headers */ = {isa = PBXBuildFile; fileRef = A2D22A110D65EED100007D5F /* verify.h */; }; 174 A29E04B50DA8764100705643 /* Network.png in Resources */ = {isa = PBXBuildFile; fileRef = A29E04B40DA8764100705643 /* Network.png */; };175 167 A29EBE710DC06068006CEE80 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A29EBE700DC06068006CEE80 /* libcurl.dylib */; }; 176 168 A2A1CB7A0BF29D5500AE959F /* PeerProgressIndicatorCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A2A1CB780BF29D5500AE959F /* PeerProgressIndicatorCell.m */; }; … … 230 222 A2F151260CD438DE001F3B0E /* InfoTabBackBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F151230CD438DE001F3B0E /* InfoTabBackBlue.png */; }; 231 223 A2F40AE40A361C00006B8288 /* Transmission.icns in Resources */ = {isa = PBXBuildFile; fileRef = 4D2784360905709500687951 /* Transmission.icns */; }; 232 A2F41DA90D0B9152006CE378 /* ActionGear.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F41DA80D0B9152006CE378 /* ActionGear.png */; };233 224 A2F41DAB0D0B916B006CE378 /* YingYangTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F41DAA0D0B916B006CE378 /* YingYangTemplate.png */; }; 234 225 A2F41DBC0D0B96C0006CE378 /* FilterBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F41DBA0D0B96C0006CE378 /* FilterBlue.png */; }; … … 308 299 D4AF3B2F0C41F7A500D46B6B /* list.c in Sources */ = {isa = PBXBuildFile; fileRef = D4AF3B2D0C41F7A500D46B6B /* list.c */; }; 309 300 D4AF3B300C41F7A600D46B6B /* list.h in Headers */ = {isa = PBXBuildFile; fileRef = D4AF3B2E0C41F7A500D46B6B /* list.h */; }; 310 E138A9770C04D88F00C5426C /* CTGradient.m in Sources */ = {isa = PBXBuildFile; fileRef = E138A9740C04D88F00C5426C /* CTGradient.m */; };311 301 E138A9780C04D88F00C5426C /* ProgressGradients.m in Sources */ = {isa = PBXBuildFile; fileRef = E138A9760C04D88F00C5426C /* ProgressGradients.m */; }; 312 302 /* End PBXBuildFile section */ … … 423 413 4D6DAAC4090CE00500F43C22 /* RevealOff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = RevealOff.png; path = macosx/Images/RevealOff.png; sourceTree = "<group>"; }; 424 414 4D6DAAC5090CE00500F43C22 /* RevealOn.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = RevealOn.png; path = macosx/Images/RevealOn.png; sourceTree = "<group>"; }; 425 4D752E920913C949008EAAD4 /* Preferences.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Preferences.png; path = macosx/Images/Preferences.png; sourceTree = "<group>"; };426 415 4DA6FDB80911233800450CB1 /* PauseOn.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = PauseOn.png; path = macosx/Images/PauseOn.png; sourceTree = "<group>"; }; 427 416 4DA6FDB90911233800450CB1 /* PauseOff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = PauseOff.png; path = macosx/Images/PauseOff.png; sourceTree = "<group>"; }; … … 439 428 4DE5CCA50980735700BE280E /* Badger.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = Badger.h; path = macosx/Badger.h; sourceTree = "<group>"; }; 440 429 4DE5CCA60980735700BE280E /* Badger.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = Badger.m; path = macosx/Badger.m; sourceTree = "<group>"; }; 441 4DE5CCA80980739100BE280E /* Badge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Badge.png; path = macosx/Images/Badge.png; sourceTree = "<group>"; };442 430 4DE5CCB80981D27700BE280E /* ResumeAll.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ResumeAll.png; path = macosx/Images/ResumeAll.png; sourceTree = "<group>"; }; 443 431 4DE5CCB90981D27700BE280E /* PauseAll.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = PauseAll.png; path = macosx/Images/PauseAll.png; sourceTree = "<group>"; }; … … 475 463 A21282A50CA6C66800EAEE0F /* StatusBarView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = StatusBarView.h; path = macosx/StatusBarView.h; sourceTree = "<group>"; }; 476 464 A21282A60CA6C66800EAEE0F /* StatusBarView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = StatusBarView.m; path = macosx/StatusBarView.m; sourceTree = "<group>"; }; 477 A21576090C0D449A0057A26A /* NSBezierPathAdditions.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = NSBezierPathAdditions.m; path = macosx/NSBezierPathAdditions.m; sourceTree = "<group>"; };478 A215760A0C0D449A0057A26A /* NSBezierPathAdditions.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = NSBezierPathAdditions.h; path = macosx/NSBezierPathAdditions.h; sourceTree = "<group>"; };479 465 A215BF5D0F02EBB800350CDB /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = macosx/en.lproj/GroupRules.xib; sourceTree = "<group>"; }; 480 466 A21979890D07B78400438EA7 /* GroupToolbarItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GroupToolbarItem.h; path = macosx/GroupToolbarItem.h; sourceTree = "<group>"; }; … … 495 481 A223AA810D220CEB00840069 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = macosx/nl.lproj/MainMenu.xib; sourceTree = "<group>"; }; 496 482 A223AA830D220CEB00840069 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = macosx/nl.lproj/PrefsWindow.xib; sourceTree = "<group>"; }; 497 A224D2630DAAC55F000954EA /* Peers.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Peers.png; path = macosx/Images/Peers.png; sourceTree = "<group>"; };498 483 A2265F3F0B5EF5F40093DDA5 /* FileNameCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FileNameCell.h; path = macosx/FileNameCell.h; sourceTree = "<group>"; }; 499 484 A2265F400B5EF5F40093DDA5 /* FileNameCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileNameCell.m; path = macosx/FileNameCell.m; sourceTree = "<group>"; }; … … 509 494 A2385DD20BFE06C800B24EF6 /* DragOverlayWindow.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = DragOverlayWindow.m; path = macosx/DragOverlayWindow.m; sourceTree = "<group>"; }; 510 495 A2385DD30BFE06C800B24EF6 /* DragOverlayWindow.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = DragOverlayWindow.h; path = macosx/DragOverlayWindow.h; sourceTree = "<group>"; }; 511 A2399CCB0CD3852300225B2B /* NSApplicationAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSApplicationAdditions.h; path = macosx/NSApplicationAdditions.h; sourceTree = "<group>"; };512 A2399CCC0CD3852300225B2B /* NSApplicationAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NSApplicationAdditions.m; path = macosx/NSApplicationAdditions.m; sourceTree = "<group>"; };513 496 A245030B0D6A1FB000B49D00 /* UpArrowGroupTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = UpArrowGroupTemplate.png; path = macosx/Images/UpArrowGroupTemplate.png; sourceTree = "<group>"; }; 514 497 A245030D0D6A1FBC00B49D00 /* DownArrowGroupTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DownArrowGroupTemplate.png; path = macosx/Images/DownArrowGroupTemplate.png; sourceTree = "<group>"; }; … … 526 509 A25892630CF1F7E800CCCDDF /* StatsWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = StatsWindowController.m; path = macosx/StatsWindowController.m; sourceTree = "<group>"; }; 527 510 A259316A0A73B2CC002F4FE7 /* TransmissionHelp */ = {isa = PBXFileReference; lastKnownFileType = folder; name = TransmissionHelp; path = macosx/TransmissionHelp; sourceTree = "<group>"; }; 528 A25AFDE70D1038AD0092A1BA /* MenuLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MenuLabel.h; path = macosx/MenuLabel.h; sourceTree = "<group>"; };529 A25AFDE80D1038AD0092A1BA /* MenuLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MenuLabel.m; path = macosx/MenuLabel.m; sourceTree = "<group>"; };530 511 A25D2CBA0CF4C7190096A262 /* stats.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = stats.h; path = libtransmission/stats.h; sourceTree = "<group>"; }; 531 512 A25D2CBB0CF4C7190096A262 /* stats.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = stats.c; path = libtransmission/stats.c; sourceTree = "<group>"; }; … … 549 530 A2623B3E0D3DC5930045D19A /* PauseHover.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = PauseHover.png; path = macosx/Images/PauseHover.png; sourceTree = "<group>"; }; 550 531 A2623B4D0D3DC6DF0045D19A /* ActionHover.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ActionHover.png; path = macosx/Images/ActionHover.png; sourceTree = "<group>"; }; 551 A26397530D0F714300D36DF2 /* ActionPopUpButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ActionPopUpButton.h; path = macosx/ActionPopUpButton.h; sourceTree = "<group>"; };552 A26397540D0F714300D36DF2 /* ActionPopUpButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ActionPopUpButton.m; path = macosx/ActionPopUpButton.m; sourceTree = "<group>"; };553 532 A265A32E0D25767700198AC8 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = macosx/fr.lproj/Creator.xib; sourceTree = "<group>"; }; 554 533 A265A32F0D25767700198AC8 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = macosx/fr.lproj/InfoWindow.xib; sourceTree = "<group>"; }; … … 609 588 A29DF8B70DB2544C00D04E5A /* resume.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = resume.h; path = libtransmission/resume.h; sourceTree = "<group>"; }; 610 589 A29DF8B80DB2544C00D04E5A /* torrent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = torrent.h; path = libtransmission/torrent.h; sourceTree = "<group>"; }; 611 A29E04B40DA8764100705643 /* Network.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Network.png; path = macosx/Images/Network.png; sourceTree = "<group>"; };612 590 A29EBE520DC01FC9006CEE80 /* web.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = web.c; path = libtransmission/web.c; sourceTree = "<group>"; }; 613 591 A29EBE530DC01FC9006CEE80 /* web.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = web.h; path = libtransmission/web.h; sourceTree = "<group>"; }; … … 698 676 A2F151220CD438DE001F3B0E /* InfoTabBack.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = InfoTabBack.png; path = macosx/Images/InfoTabBack.png; sourceTree = "<group>"; }; 699 677 A2F151230CD438DE001F3B0E /* InfoTabBackBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = InfoTabBackBlue.png; path = macosx/Images/InfoTabBackBlue.png; sourceTree = "<group>"; }; 700 A2F41DA80D0B9152006CE378 /* ActionGear.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ActionGear.png; path = macosx/Images/ActionGear.png; sourceTree = "<group>"; };701 678 A2F41DAA0D0B916B006CE378 /* YingYangTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = YingYangTemplate.png; path = macosx/Images/YingYangTemplate.png; sourceTree = "<group>"; }; 702 679 A2F41DBA0D0B96C0006CE378 /* FilterBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = FilterBlue.png; path = macosx/Images/FilterBlue.png; sourceTree = "<group>"; }; … … 780 757 D4AF3B2D0C41F7A500D46B6B /* list.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = list.c; path = libtransmission/list.c; sourceTree = "<group>"; }; 781 758 D4AF3B2E0C41F7A500D46B6B /* list.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = list.h; path = libtransmission/list.h; sourceTree = "<group>"; }; 782 E138A9730C04D88F00C5426C /* CTGradient.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = CTGradient.h; path = macosx/CTGradient/CTGradient.h; sourceTree = "<group>"; };783 E138A9740C04D88F00C5426C /* CTGradient.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = CTGradient.m; path = macosx/CTGradient/CTGradient.m; sourceTree = "<group>"; };784 759 E138A9750C04D88F00C5426C /* ProgressGradients.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ProgressGradients.h; path = macosx/ProgressGradients.h; sourceTree = "<group>"; }; 785 760 E138A9760C04D88F00C5426C /* ProgressGradients.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = ProgressGradients.m; path = macosx/ProgressGradients.m; sourceTree = "<group>"; }; … … 892 867 A28F4F750E085BDC003A3882 /* ColorTextField.h */, 893 868 A28F4F760E085BDC003A3882 /* ColorTextField.m */, 894 A25AFDE70D1038AD0092A1BA /* MenuLabel.h */,895 A25AFDE80D1038AD0092A1BA /* MenuLabel.m */,896 869 A26AF2820D2DC27C00FF7140 /* AddWindowController.h */, 897 870 A26AF2830D2DC27C00FF7140 /* AddWindowController.m */, 898 A26397530D0F714300D36DF2 /* ActionPopUpButton.h */,899 A26397540D0F714300D36DF2 /* ActionPopUpButton.m */,900 871 A2BF078E0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.h */, 901 872 A2BF078F0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.m */, … … 922 893 E1B6FC000C0D72A00015FE4D /* Overlay Window */, 923 894 E1B6FBEB0C0D70AC0015FE4D /* UKKQueue */, 924 E138A9730C04D88F00C5426C /* CTGradient.h */,925 E138A9740C04D88F00C5426C /* CTGradient.m */,926 895 E138A9750C04D88F00C5426C /* ProgressGradients.h */, 927 896 E138A9760C04D88F00C5426C /* ProgressGradients.m */, … … 1029 998 A2EF7DEB0C96297400FA9811 /* PurpleDot.png */, 1030 999 A2BC19840CA9AF5A00DD302A /* CompleteCheck.png */, 1031 4D752E920913C949008EAAD4 /* Preferences.png */,1032 1000 A21DFF0F0A292B2B007C5F76 /* Transfers.png */, 1033 1001 A2E2EA910EE321C200EB6308 /* Groups.png */, 1034 1002 A2D0E0480A54A97C003C72CF /* Bandwidth.png */, 1035 A224D2630DAAC55F000954EA /* Peers.png */,1036 A29E04B40DA8764100705643 /* Network.png */,1037 1003 A2C0C5020E02CB6100D95339 /* Remote.png */, 1038 1004 4D2784360905709500687951 /* Transmission.icns */, … … 1050 1016 A22D3AA30D00D1790079CFED /* Turtle.png */, 1051 1017 A22D3AA40D00D1790079CFED /* TurtleBlue.png */, 1052 A2F41DA80D0B9152006CE378 /* ActionGear.png */,1053 1018 A277DA090C693D9C00DA2CD4 /* ActionOn.png */, 1054 1019 A2623B4D0D3DC6DF0045D19A /* ActionHover.png */, … … 1065 1030 4DA6FDC4091141AD00450CB1 /* ResumeOn.png */, 1066 1031 A2623B3D0D3DC5930045D19A /* ResumeHover.png */, 1067 4DE5CCA80980739100BE280E /* Badge.png */,1068 1032 4DDFDD20099A5D8E00189D81 /* DownloadBadge.png */, 1069 1033 4DDFDD21099A5D8E00189D81 /* UploadBadge.png */, … … 1240 1204 isa = PBXGroup; 1241 1205 children = ( 1242 A2399CCB0CD3852300225B2B /* NSApplicationAdditions.h */,1243 A2399CCC0CD3852300225B2B /* NSApplicationAdditions.m */,1244 1206 4DE5CC9B0980656F00BE280E /* NSStringAdditions.h */, 1245 1207 4DE5CC9C0980656F00BE280E /* NSStringAdditions.m */, 1246 A215760A0C0D449A0057A26A /* NSBezierPathAdditions.h */,1247 A21576090C0D449A0057A26A /* NSBezierPathAdditions.m */,1248 1208 ); 1249 1209 name = Additions; … … 1678 1638 4DA6FDC5091141AD00450CB1 /* ResumeOff.png in Resources */, 1679 1639 4DA6FDC6091141AD00450CB1 /* ResumeOn.png in Resources */, 1680 4D752E930913C949008EAAD4 /* Preferences.png in Resources */,1681 4DE5CCA90980739100BE280E /* Badge.png in Resources */,1682 1640 4DE5CCBA0981D27700BE280E /* ResumeAll.png in Resources */, 1683 1641 4DE5CCBB0981D27700BE280E /* PauseAll.png in Resources */, … … 1725 1683 A29AF4F70D01BADC00D097EC /* DownArrowTemplate.png in Resources */, 1726 1684 A29AF4F90D01BAEB00D097EC /* UpArrowTemplate.png in Resources */, 1727 A2F41DA90D0B9152006CE378 /* ActionGear.png in Resources */,1728 1685 A2F41DAB0D0B916B006CE378 /* YingYangTemplate.png in Resources */, 1729 1686 A2F41DBC0D0B96C0006CE378 /* FilterBlue.png in Resources */, … … 1753 1710 A233BD690D8CF2C7007EE7B4 /* StatsWindow.xib in Resources */, 1754 1711 A2D307B10D9EC9F50051FD27 /* BlocklistStatusWindow.xib in Resources */, 1755 A29E04B50DA8764100705643 /* Network.png in Resources */,1756 A224D2640DAAC55F000954EA /* Peers.png in Resources */,1757 1712 A26146E10DD4A0160060F033 /* GroupsNoneTemplate.png in Resources */, 1758 1713 A2C0C5030E02CB6100D95339 /* Remote.png in Resources */, … … 1893 1848 A2385DD40BFE06C800B24EF6 /* DragOverlayWindow.m in Sources */, 1894 1849 A2FB057F0BFEB6800095564D /* DragOverlayView.m in Sources */, 1895 E138A9770C04D88F00C5426C /* CTGradient.m in Sources */,1896 1850 E138A9780C04D88F00C5426C /* ProgressGradients.m in Sources */, 1897 A215760B0C0D449A0057A26A /* NSBezierPathAdditions.m in Sources */,1898 1851 A2DF37070C220D03006523C1 /* CreatorWindowController.m in Sources */, 1899 1852 35F373030C2DA89000DAA8F2 /* FilePriorityCell.m in Sources */, … … 1902 1855 A257C1820CAD3003004E121C /* PeerTableView.m in Sources */, 1903 1856 A2E23AC60CB5E1930002BB25 /* InfoTabButtonCell.m in Sources */, 1904 A2399CCD0CD3852300225B2B /* NSApplicationAdditions.m in Sources */,1905 1857 A2A6321B0CD9751700E3DA60 /* BadgeView.m in Sources */, 1906 1858 A2ED7D8F0CEF431B00970975 /* FilterButton.m in Sources */, … … 1909 1861 A219798B0D07B78400438EA7 /* GroupToolbarItem.m in Sources */, 1910 1862 A20BFFB70D091CC700CE5D2B /* ToolbarSegmentedCell.m in Sources */, 1911 A26397550D0F714300D36DF2 /* ActionPopUpButton.m in Sources */,1912 A25AFDE90D1038AD0092A1BA /* MenuLabel.m in Sources */,1913 1863 A22180980D148A71007D09ED /* GroupsPrefsController.m in Sources */, 1914 1864 A26AF21A0D2DA35A00FF7140 /* FileOutlineController.m in Sources */, -
trunk/macosx/AddWindowController.m
r7427 r7508 28 28 #import "GroupsController.h" 29 29 #import "NSStringAdditions.h" 30 #import "NSApplicationAdditions.h"31 30 #import "ExpandedPathToIconTransformer.h" 32 31 … … 165 164 [alert addButtonWithTitle: NSLocalizedString(@"Cancel", "Add torrent -> same name -> button")]; 166 165 [alert addButtonWithTitle: NSLocalizedString(@"Add", "Add torrent -> same name -> button")]; 167 168 if ([NSApp isOnLeopardOrBetter]) 169 [alert setShowsSuppressionButton: YES]; 170 else 171 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Add torrent -> same name -> button")]; 166 [alert setShowsSuppressionButton: YES]; 172 167 173 168 [alert beginSheetModalForWindow: [self window] modalDelegate: self … … 309 304 - (void) sameNameAlertDidEnd: (NSAlert *) alert returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo 310 305 { 311 if ( ([NSApp isOnLeopardOrBetter] ? [[alert suppressionButton] state] == NSOnState : returnCode == NSAlertThirdButtonReturn))306 if ([[alert suppressionButton] state] == NSOnState) 312 307 [[NSUserDefaults standardUserDefaults] setBool: NO forKey: @"WarningFolderDataSameName"]; 313 308 -
trunk/macosx/Badger.h
r7468 r7508 31 31 32 32 NSUInteger fCompleted; 33 34 //tiger-only fields35 NSImage * fDockIcon, * fBadge;36 NSDictionary * fAttributes;37 NSUInteger fCompletedBadged;38 BOOL fSpeedBadge, fQuittingTiger;39 33 } 40 34 -
trunk/macosx/Badger.m
r7468 r7508 25 25 #import "Badger.h" 26 26 #import "BadgeView.h" 27 #import "NSApplicationAdditions.h"28 #import "NSStringAdditions.h"29 30 #define COMPLETED_BOTTOM_PADDING 5.031 #define SPEED_BOTTOM_PADDING 2.032 #define SPEED_BETWEEN_PADDING 2.033 #define BADGE_HEIGHT 30.034 35 @interface Badger (Private)36 37 - (void) badgeString: (NSString *) string forRect: (NSRect) rect;38 39 @end40 27 41 28 @implementation Badger … … 49 36 fCompleted = 0; 50 37 51 if ([NSApp isOnLeopardOrBetter]) 52 { 53 BadgeView * view = [[BadgeView alloc] initWithFrame: [[[NSApp dockTile] contentView] frame] lib: lib]; 54 [[NSApp dockTile] setContentView: view]; 55 [view release]; 56 } 57 else 58 { 59 fQuittingTiger = NO; 60 fSpeedBadge = NO; 61 fCompletedBadged = 0; 62 } 38 BadgeView * view = [[BadgeView alloc] initWithFrame: [[[NSApp dockTile] contentView] frame] lib: lib]; 39 [[NSApp dockTile] setContentView: view]; 40 [view release]; 63 41 64 42 //change that just impacts the dock badge … … 73 51 [[NSNotificationCenter defaultCenter] removeObserver: self]; 74 52 75 if (![NSApp isOnLeopardOrBetter])76 [NSApp setApplicationIconImage: nil]; //needed on 10.477 78 [fDockIcon release];79 [fAttributes release];80 81 53 [super dealloc]; 82 54 } … … 84 56 - (void) updateBadge 85 57 { 86 if ([NSApp isOnLeopardOrBetter]) 87 { 88 float downloadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"] 89 ? tr_sessionGetPieceSpeed(fLib, TR_DOWN) : 0.0f; 90 float uploadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeUploadRate"] 91 ? tr_sessionGetPieceSpeed(fLib, TR_UP) : 0.0f; 92 93 //only update if the badged values change 94 if ([(BadgeView *)[[NSApp dockTile] contentView] setRatesWithDownload: downloadRate upload: uploadRate]) 95 [[NSApp dockTile] display]; 96 97 return; 98 } 58 float downloadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"] 59 ? tr_sessionGetPieceSpeed(fLib, TR_DOWN) : 0.0f; 60 float uploadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeUploadRate"] 61 ? tr_sessionGetPieceSpeed(fLib, TR_UP) : 0.0f; 99 62 100 if (fQuittingTiger) 101 return; 102 103 //set completed badge to top right 104 BOOL completedChange = fCompleted != fCompletedBadged; 105 if (completedChange) 106 { 107 fCompletedBadged = fCompleted; 108 109 //force image to reload - copy does not work 110 NSImage * icon = [[NSImage imageNamed: @"NSApplicationIcon"] copy]; 111 NSSize iconSize = [icon size]; 112 113 [fDockIcon release]; 114 fDockIcon = [[NSImage alloc] initWithSize: iconSize]; 115 [fDockIcon addRepresentation: [icon bestRepresentationForDevice: nil]]; 116 [icon release]; 117 118 if (fCompleted > 0) 119 { 120 if (!fBadge) 121 fBadge = [NSImage imageNamed: @"Badge"]; 122 123 NSRect badgeRect; 124 badgeRect.size = [fBadge size]; 125 badgeRect.origin.x = iconSize.width - badgeRect.size.width; 126 badgeRect.origin.y = iconSize.height - badgeRect.size.height; 127 128 [fDockIcon lockFocus]; 129 130 //place badge 131 [fBadge compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver]; 132 133 //ignore shadow of badge when placing string 134 badgeRect.size.height -= COMPLETED_BOTTOM_PADDING; 135 badgeRect.origin.y += COMPLETED_BOTTOM_PADDING; 136 137 //place badge text 138 [self badgeString: [NSString stringWithFormat: @"%d", fCompleted] forRect: badgeRect]; 139 140 [fDockIcon unlockFocus]; 141 } 142 } 143 144 NSImage * dockIcon = nil; 145 BOOL speedBadge = NO; 146 147 BOOL checkDownload = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"], 148 checkUpload = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeUploadRate"]; 149 if (checkDownload || checkUpload) 150 { 151 //set upload and download rate badges 152 NSString * downloadRateString = nil, * uploadRateString = nil; 153 154 float downloadRate = checkDownload ? tr_sessionGetPieceSpeed(fLib, TR_DOWN) : 0.0f; 155 float uploadRate = checkUpload ? tr_sessionGetPieceSpeed(fLib, TR_UP) : 0.0f; 156 157 if (checkDownload && downloadRate >= 0.1) 158 downloadRateString = [NSString stringForSpeedAbbrev: downloadRate]; 159 if (checkUpload && uploadRate >= 0.1) 160 uploadRateString = [NSString stringForSpeedAbbrev: uploadRate]; 161 162 speedBadge = uploadRateString || downloadRateString; 163 if (speedBadge) 164 { 165 if (!fDockIcon) 166 fDockIcon = [[NSImage imageNamed: @"NSApplicationIcon"] copy]; 167 dockIcon = [fDockIcon copy]; 168 169 NSRect badgeRect; 170 badgeRect.size = [[NSImage imageNamed: @"UploadBadge.png"] size]; 171 badgeRect.origin = NSZeroPoint; 172 173 //ignore shadow of badge when placing string 174 NSRect stringRect = badgeRect; 175 stringRect.size.height -= SPEED_BOTTOM_PADDING; 176 stringRect.origin.y += SPEED_BOTTOM_PADDING; 177 178 [dockIcon lockFocus]; 179 180 if (uploadRateString) 181 { 182 //place badge and text 183 [[NSImage imageNamed: @"UploadBadge.png"] compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver]; 184 [self badgeString: uploadRateString forRect: stringRect]; 185 } 186 187 if (downloadRateString) 188 { 189 //download rate above upload rate 190 if (uploadRateString) 191 { 192 float spaceBetween = badgeRect.size.height + SPEED_BETWEEN_PADDING; 193 badgeRect.origin.y += spaceBetween; 194 stringRect.origin.y += spaceBetween; 195 } 196 197 //place badge and text 198 [[NSImage imageNamed: @"DownloadBadge.png"] compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver]; 199 [self badgeString: downloadRateString forRect: stringRect]; 200 } 201 202 [dockIcon unlockFocus]; 203 } 204 } 205 206 //update dock badge 207 if (fSpeedBadge || speedBadge || completedChange) 208 { 209 [NSApp setApplicationIconImage: dockIcon ? dockIcon : fDockIcon]; 210 [dockIcon release]; 211 212 fSpeedBadge = speedBadge; 213 } 63 //only update if the badged values change 64 if ([(BadgeView *)[[NSApp dockTile] contentView] setRatesWithDownload: downloadRate upload: uploadRate]) 65 [[NSApp dockTile] display]; 214 66 } 215 67 … … 217 69 { 218 70 fCompleted++; 219 220 if ([NSApp isOnLeopardOrBetter]) 221 [[NSApp dockTile] setBadgeLabel: [NSString stringWithFormat: @"%d", fCompleted]]; 222 else 223 [self updateBadge]; 71 [[NSApp dockTile] setBadgeLabel: [NSString stringWithFormat: @"%d", fCompleted]]; 224 72 } 225 73 … … 229 77 { 230 78 fCompleted = 0; 231 if ([NSApp isOnLeopardOrBetter]) 232 [[NSApp dockTile] setBadgeLabel: @""]; 233 else 234 [self updateBadge]; 79 [[NSApp dockTile] setBadgeLabel: @""]; 235 80 } 236 81 } … … 238 83 - (void) setQuitting 239 84 { 240 if ([NSApp isOnLeopardOrBetter]) 241 { 242 [self clearCompleted]; 243 [(BadgeView *)[[NSApp dockTile] contentView] setQuitting]; 244 [[NSApp dockTile] display]; 245 } 246 else 247 { 248 fQuittingTiger = YES; 249 250 fSpeedBadge = NO; 251 fCompleted = 0; 252 fCompletedBadged = 0; 253 254 NSImage * quitIcon = [[NSImage imageNamed: @"NSApplicationIcon"] copy]; 255 NSRect rect = NSZeroRect; 256 rect.size = [quitIcon size]; 257 258 NSRect badgeRect = NSMakeRect(0.0, (rect.size.height - BADGE_HEIGHT) * 0.5, rect.size.width, BADGE_HEIGHT); 259 260 [quitIcon lockFocus]; 261 262 [[NSImage imageNamed: @"QuitBadge.png"] compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver]; 263 [self badgeString: NSLocalizedString(@"Quitting", "Dock Badger -> quit message") forRect: badgeRect]; 264 265 [quitIcon unlockFocus]; 266 267 [NSApp setApplicationIconImage: quitIcon]; 268 [quitIcon release]; 269 } 85 [self clearCompleted]; 86 [(BadgeView *)[[NSApp dockTile] contentView] setQuitting]; 87 [[NSApp dockTile] display]; 270 88 } 271 89 272 90 @end 273 274 @implementation Badger (Private)275 276 //dock icon must have locked focus277 - (void) badgeString: (NSString *) string forRect: (NSRect) rect278 {279 if (!fAttributes)280 {281 NSShadow * stringShadow = [[NSShadow alloc] init];282 [stringShadow setShadowOffset: NSMakeSize(2.0, -2.0)];283 [stringShadow setShadowBlurRadius: 4.0];284 285 fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:286 [NSColor whiteColor], NSForegroundColorAttributeName,287 [NSFont boldSystemFontOfSize: 26.0], NSFontAttributeName, stringShadow, NSShadowAttributeName, nil];288 289 [stringShadow release];290 }291 292 NSSize stringSize = [string sizeWithAttributes: fAttributes];293 294 //string is in center of image295 rect.origin.x += (rect.size.width - stringSize.width) * 0.5;296 rect.origin.y += (rect.size.height - stringSize.height) * 0.5;297 rect.size = stringSize;298 299 [string drawInRect: rect withAttributes: fAttributes];300 }301 302 @end -
trunk/macosx/BlocklistDownloader.m
r6682 r7508 27 27 #import "BlocklistScheduler.h" 28 28 #import "PrefsController.h" 29 #import "NSApplicationAdditions.h"30 29 31 30 #define LIST_URL @"http://download.m0k.org/transmission/files/level1.gz" … … 125 124 { 126 125 fState = BLOCKLIST_DL_PROCESSING; 127 128 if ([NSApp isOnLeopardOrBetter]) 129 [self performSelectorInBackground: @selector(finishDownloadSuccess) withObject: nil]; 130 else 131 [self finishDownloadSuccess]; 126 [self performSelectorInBackground: @selector(finishDownloadSuccess) withObject: nil]; 132 127 } 133 128 … … 158 153 159 154 //delete downloaded file 160 if ([NSApp isOnLeopardOrBetter]) 161 [[NSFileManager defaultManager] removeItemAtPath: DESTINATION error: NULL]; 162 else 163 [[NSFileManager defaultManager] removeFileAtPath: DESTINATION handler: nil]; 155 [[NSFileManager defaultManager] removeItemAtPath: DESTINATION error: NULL]; 164 156 165 157 [fViewController setFinished]; -
trunk/macosx/BlocklistScheduler.m
r7200 r7508 25 25 #import "BlocklistScheduler.h" 26 26 #import "BlocklistDownloader.h" 27 #import "NSApplicationAdditions.h"28 27 29 28 //thirty second delay before running after option is changed … … 72 71 73 72 //current run loop usually means a second update won't work 74 NSRunLoop * loop = [NS App isOnLeopardOrBetter] ? [NSRunLoop mainRunLoop] : [NSRunLoop currentRunLoop];73 NSRunLoop * loop = [NSRunLoop mainRunLoop]; 75 74 [loop addTimer: fTimer forMode: NSDefaultRunLoopMode]; 76 75 [loop addTimer: fTimer forMode: NSModalPanelRunLoopMode]; -
trunk/macosx/Controller.h
r7468 r7508 37 37 @class StatusBarView; 38 38 @class FilterButton; 39 @class MenuLabel;40 39 41 40 typedef enum … … 68 67 69 68 IBOutlet NSMenuItem * fOpenIgnoreDownloadFolder; 70 71 IBOutlet NSBox * fBottomTigerLine;72 69 IBOutlet NSButton * fActionButton, * fSpeedLimitButton; 73 70 IBOutlet NSTextField * fTotalTorrentsField; … … 75 72 IBOutlet StatusBarView * fStatusBar; 76 73 IBOutlet NSButton * fStatusButton; 77 IBOutlet MenuLabel * fStatusTigerField;78 IBOutlet NSImageView * fStatusTigerImageView;79 74 IBOutlet NSTextField * fTotalDLField, * fTotalULField; 80 75 IBOutlet NSImageView * fTotalDLImageView; -
trunk/macosx/Controller.m
r7506 r7508 43 43 #import "FilterButton.h" 44 44 #import "BonjourController.h" 45 #import "NSApplicationAdditions.h"46 45 #import "NSStringAdditions.h" 47 46 #import "ExpandedPathToPathTransformer.h" … … 307 306 + [fTableView rowHeight] + [fTableView intercellSpacing].height; 308 307 [fWindow setContentMinSize: contentMinSize]; 309 310 if ([NSApp isOnLeopardOrBetter]) 311 { 312 [fWindow setContentBorderThickness: [[fTableView enclosingScrollView] frame].origin.y forEdge: NSMinYEdge]; 313 [[fTotalTorrentsField cell] setBackgroundStyle: NSBackgroundStyleRaised]; 314 315 [[[fActionButton menu] itemAtIndex: 0] setImage: [NSImage imageNamed: NSImageNameActionTemplate]]; //set in nib if Leopard-only 316 317 [fBottomTigerLine removeFromSuperview]; 318 [fStatusTigerField removeFromSuperview]; 319 [fStatusTigerImageView removeFromSuperview]; 320 } 321 else 322 { 323 [fActionButton setBezelStyle: NSSmallSquareBezelStyle]; 324 [fSpeedLimitButton setBezelStyle: NSSmallSquareBezelStyle]; 325 326 //status bar 327 [fStatusButton setHidden: YES]; 328 [fStatusTigerField setHidden: NO]; 329 [fStatusTigerImageView setHidden: NO]; 330 331 //filter bar 332 [fNoFilterButton sizeToFit]; 333 334 NSRect activeRect = [fActiveFilterButton frame]; 335 activeRect.origin.x = NSMaxX([fNoFilterButton frame]) + 1.0; 336 [fActiveFilterButton setFrame: activeRect]; 337 } 308 [fWindow setContentBorderThickness: [[fTableView enclosingScrollView] frame].origin.y forEdge: NSMinYEdge]; 309 310 [[fTotalTorrentsField cell] setBackgroundStyle: NSBackgroundStyleRaised]; 338 311 339 312 [self updateGroupsFilterButton]; … … 638 611 639 612 [fOverlayWindow release]; 613 [fBadger release]; 640 614 641 615 [fAutoImportedNames release]; … … 644 618 //complete cleanup 645 619 tr_sessionClose(fLib); 646 647 [fBadger release]; //clears dock icon on Tiger648 620 } 649 621 … … 719 691 720 692 //delete the torrent file after opening 721 if ([NSApp isOnLeopardOrBetter]) 722 [[NSFileManager defaultManager] removeItemAtPath: path error: NULL]; 723 else 724 [[NSFileManager defaultManager] removeFileAtPath: path handler: nil]; 693 [[NSFileManager defaultManager] removeItemAtPath: path error: NULL]; 725 694 726 695 [fPendingTorrentDownloads removeObjectForKey: [[download request] URL]]; … … 990 959 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Open invalid alert -> button")]; 991 960 992 BOOL onLeopard = [NSApp isOnLeopardOrBetter]; 993 if (onLeopard) 994 [alert setShowsSuppressionButton: YES]; 995 else 996 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Open duplicate alert -> button")]; 997 998 NSInteger result = [alert runModal]; 999 if ((onLeopard ? [[alert suppressionButton] state] == NSOnState : result == NSAlertSecondButtonReturn)) 961 [alert runModal]; 962 if ([[alert suppressionButton] state] == NSOnState) 1000 963 [fDefaults setBool: NO forKey: @"WarningInvalidOpen"]; 1001 964 [alert release]; … … 1015 978 [alert setAlertStyle: NSWarningAlertStyle]; 1016 979 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Open duplicate alert -> button")]; 1017 1018 BOOL onLeopard = [NSApp isOnLeopardOrBetter]; 1019 if (onLeopard) 1020 [alert setShowsSuppressionButton: YES]; 1021 else 1022 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Open duplicate alert -> button")]; 1023 1024 NSInteger result = [alert runModal]; 1025 if ((onLeopard ? [[alert suppressionButton] state] == NSOnState : result == NSAlertSecondButtonReturn)) 980 [alert setShowsSuppressionButton: YES]; 981 982 [alert runModal]; 983 if ([[alert suppressionButton] state]) 1026 984 [fDefaults setBool: NO forKey: @"WarningDuplicate"]; 1027 985 [alert release]; … … 1566 1524 } 1567 1525 1568 if ([NSApp isOnLeopardOrBetter]) 1569 { 1570 [fStatusButton setTitle: statusString]; 1571 [self resizeStatusButton]; 1572 } 1573 else 1574 [fStatusTigerField setStringValue: statusString]; 1526 [fStatusButton setTitle: statusString]; 1527 [self resizeStatusButton]; 1575 1528 } 1576 1529 } … … 1951 1904 } 1952 1905 1953 //on Tiger add the group sort descriptor to the front1954 if (![NSApp isOnLeopardOrBetter] && [fDefaults boolForKey: @"SortByGroup"])1955 {1956 NSSortDescriptor * groupDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"groupOrderValue" ascending: YES] autorelease];1957 1958 NSMutableArray * temp = [[NSMutableArray alloc] initWithCapacity: [descriptors count]+1];1959 [temp addObject: groupDescriptor];1960 [temp addObjectsFromArray: descriptors];1961 1962 [descriptors release];1963 descriptors = temp;1964 }1965 1966 1906 //actually sort 1967 if ([fDefaults boolForKey: @"SortByGroup"] && [NSApp isOnLeopardOrBetter])1907 if ([fDefaults boolForKey: @"SortByGroup"]) 1968 1908 { 1969 1909 NSEnumerator * enumerator = [fDisplayedTorrents objectEnumerator]; … … 2111 2051 2112 2052 //place torrents into groups 2113 BOOL groupRows = [fDefaults boolForKey: @"SortByGroup"] && [NSApp isOnLeopardOrBetter];2053 BOOL groupRows = [fDefaults boolForKey: @"SortByGroup"]; 2114 2054 if (groupRows) 2115 2055 { … … 2408 2348 } 2409 2349 2410 //tiger doesn't have built-in image scaling in buttons2411 if (![NSApp isOnLeopardOrBetter])2412 {2413 icon = [[icon copy] autorelease];2414 [icon setScalesWhenResized: YES];2415 [icon setSize: NSMakeSize(12.0, 12.0)];2416 }2417 2418 2350 [[fGroupFilterMenu itemAtIndex: 0] setImage: icon]; 2419 2351 [fGroupsButton setToolTip: toolTip]; … … 2514 2446 userInfo: [NSNumber numberWithBool: nextIsLimit] repeats: NO]; 2515 2447 2516 NSRunLoop * loop = [NS App isOnLeopardOrBetter] ? [NSRunLoop mainRunLoop] : [NSRunLoop currentRunLoop];2448 NSRunLoop * loop = [NSRunLoop mainRunLoop]; 2517 2449 [loop addTimer: fSpeedLimitTimer forMode: NSDefaultRunLoopMode]; 2518 2450 [loop addTimer: fSpeedLimitTimer forMode: NSModalPanelRunLoopMode]; … … 2732 2664 { 2733 2665 //only allow reordering of rows if sorting by order 2734 if (([fDefaults boolForKey: @"SortByGroup"] && [NSApp isOnLeopardOrBetter]) 2735 || [[fDefaults stringForKey: @"Sort"] isEqualToString: SORT_ORDER]) 2666 if ([fDefaults boolForKey: @"SortByGroup"] || [[fDefaults stringForKey: @"Sort"] isEqualToString: SORT_ORDER]) 2736 2667 { 2737 2668 NSMutableIndexSet * indexSet = [NSMutableIndexSet indexSet]; … … 3454 3385 - (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar *) toolbar 3455 3386 { 3456 NSMutableArray * idents = [NSMutableArray arrayWithObjects: 3457 TOOLBAR_CREATE, TOOLBAR_OPEN_FILE, TOOLBAR_OPEN_WEB, 3458 TOOLBAR_REMOVE, TOOLBAR_PAUSE_RESUME_SELECTED, TOOLBAR_PAUSE_RESUME_ALL, 3459 TOOLBAR_FILTER, TOOLBAR_INFO, 3460 NSToolbarSeparatorItemIdentifier, 3461 NSToolbarSpaceItemIdentifier, 3462 NSToolbarFlexibleSpaceItemIdentifier, 3463 NSToolbarCustomizeToolbarItemIdentifier, nil]; 3464 3465 //allow quicklook on leopard 3466 if ([NSApp isOnLeopardOrBetter]) 3467 [idents insertObject: TOOLBAR_QUICKLOOK atIndex: 6]; 3468 3469 return idents; 3387 return [NSArray arrayWithObjects: 3388 TOOLBAR_CREATE, TOOLBAR_OPEN_FILE, TOOLBAR_OPEN_WEB, TOOLBAR_REMOVE, 3389 TOOLBAR_PAUSE_RESUME_SELECTED, TOOLBAR_PAUSE_RESUME_ALL, 3390 TOOLBAR_QUICKLOOK, TOOLBAR_FILTER, TOOLBAR_INFO, 3391 NSToolbarSeparatorItemIdentifier, 3392 NSToolbarSpaceItemIdentifier, 3393 NSToolbarFlexibleSpaceItemIdentifier, 3394 NSToolbarCustomizeToolbarItemIdentifier, nil]; 3470 3395 } 3471 3396 3472 3397 - (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar 3473 3398 { 3474 NSMutableArray * idents = [NSMutableArray arrayWithObjects: 3475 TOOLBAR_CREATE, TOOLBAR_OPEN_FILE, TOOLBAR_REMOVE, 3476 NSToolbarSeparatorItemIdentifier, 3477 TOOLBAR_PAUSE_RESUME_ALL, 3478 NSToolbarFlexibleSpaceItemIdentifier, 3479 TOOLBAR_FILTER, TOOLBAR_INFO, nil]; 3480 3481 //allow quicklook on leopard 3482 if ([NSApp isOnLeopardOrBetter]) 3483 [idents insertObject: TOOLBAR_QUICKLOOK atIndex: [idents count]-2]; 3484 3485 return idents; 3399 return [NSArray arrayWithObjects: 3400 TOOLBAR_CREATE, TOOLBAR_OPEN_FILE, TOOLBAR_REMOVE, NSToolbarSeparatorItemIdentifier, 3401 TOOLBAR_PAUSE_RESUME_ALL, NSToolbarFlexibleSpaceItemIdentifier, 3402 TOOLBAR_QUICKLOOK, TOOLBAR_FILTER, TOOLBAR_INFO, nil]; 3486 3403 } 3487 3404 -
trunk/macosx/CreatorWindowController.m
r7468 r7508 24 24 25 25 #import "CreatorWindowController.h" 26 #import "NSApplicationAdditions.h"27 26 #import "NSStringAdditions.h" 28 27 #import "utils.h" //tr_httpIsValidURL … … 185 184 fOpenTorrent = [fDefaults boolForKey: @"CreatorOpen"]; 186 185 [self updateEnableOpenCheckForTrackers]; 187 188 if (![NSApp isOnLeopardOrBetter])189 {190 [fTrackerAddRemoveControl sizeToFit];191 [fTrackerAddRemoveControl setLabel: @"+" forSegment: TRACKER_ADD_TAG];192 [fTrackerAddRemoveControl setLabel: @"-" forSegment: TRACKER_REMOVE_TAG];193 }194 186 } 195 187 … … 241 233 [alert addButtonWithTitle: NSLocalizedString(@"Create", "Create torrent -> blank address -> button")]; 242 234 [alert addButtonWithTitle: NSLocalizedString(@"Cancel", "Create torrent -> blank address -> button")]; 243 244 if ([NSApp isOnLeopardOrBetter]) 245 [alert setShowsSuppressionButton: YES]; 246 else 247 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Create torrent -> blank address -> button")]; 235 [alert setShowsSuppressionButton: YES]; 248 236 249 237 [alert beginSheetModalForWindow: [self window] modalDelegate: self … … 378 366 - (void) createBlankAddressAlertDidEnd: (NSAlert *) alert returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo 379 367 { 380 if ( ([NSApp isOnLeopardOrBetter] ? [[alert suppressionButton] state] == NSOnState : returnCode == NSAlertThirdButtonReturn))368 if ([[alert suppressionButton] state] == NSOnState) 381 369 [[NSUserDefaults standardUserDefaults] setBool: NO forKey: @"WarningCreatorBlankAddress"]; 382 370 -
trunk/macosx/DragOverlayView.m
r7013 r7508 24 24 25 25 #import "DragOverlayView.h" 26 #import "NSBezierPathAdditions.h"27 26 28 27 #define PADDING 10.0f … … 37 36 //create badge 38 37 NSRect badgeRect = NSMakeRect(0.0f, 0.0f, 325.0f, 84.0f); 39 NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: badgeRect radius: 15.0f];38 NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: badgeRect xRadius: 15.0f yRadius: 15.0f]; 40 39 41 40 fBackBadge = [[NSImage alloc] initWithSize: badgeRect.size]; -
trunk/macosx/FileOutlineController.m
r7311 r7508 29 29 #import "FileListNode.h" 30 30 #import "QuickLookController.h" 31 #import "NSApplicationAdditions.h"32 31 33 32 #define ROW_SMALL_HEIGHT 18.0f … … 60 59 61 60 //set table header tool tips 62 if ([NSApp isOnLeopardOrBetter]) 63 { 64 [[fOutline tableColumnWithIdentifier: @"Check"] setHeaderToolTip: NSLocalizedString(@"Download", 65 "file table -> header tool tip")]; 66 [[fOutline tableColumnWithIdentifier: @"Priority"] setHeaderToolTip: NSLocalizedString(@"Priority", 67 "file table -> header tool tip")]; 68 } 61 [[fOutline tableColumnWithIdentifier: @"Check"] setHeaderToolTip: NSLocalizedString(@"Download", 62 "file table -> header tool tip")]; 63 [[fOutline tableColumnWithIdentifier: @"Priority"] setHeaderToolTip: NSLocalizedString(@"Priority", 64 "file table -> header tool tip")]; 69 65 70 66 [fOutline setMenu: [self menu]]; -
trunk/macosx/FileOutlineView.h
r5898 r7508 26 26 27 27 @class Torrent; 28 @class CTGradient;29 28 30 29 @interface FileOutlineView : NSOutlineView … … 32 31 Torrent * fTorrent; 33 32 34 CTGradient * fHighPriorityGradient, * fLowPriorityGradient, * fMixedPriorityGradient;33 NSGradient * fHighPriorityGradient, * fLowPriorityGradient, * fMixedPriorityGradient; 35 34 36 35 int fMouseRow; -
trunk/macosx/FileOutlineView.m
r7018 r7508 29 29 #import "FileListNode.h" 30 30 #import "QuickLookController.h" 31 #import "CTGradient.h"32 31 33 32 @implementation FileOutlineView … … 48 47 NSColor * endingColor = [NSColor colorWithCalibratedRed: 217.0/255.0 green: 250.0/255.0 blue: 211.0/255.0 alpha: 1.0]; 49 48 NSColor * beginningColor = [endingColor blendedColorWithFraction: 0.3 ofColor: [NSColor whiteColor]]; 50 fHighPriorityGradient = [[ CTGradient gradientWithBeginningColor: beginningColor endingColor: endingColor] retain];49 fHighPriorityGradient = [[NSGradient alloc] initWithStartingColor: beginningColor endingColor: endingColor]; 51 50 52 51 endingColor = [NSColor colorWithCalibratedRed: 255.0/255.0 green: 243.0/255.0 blue: 206.0/255.0 alpha: 1.0]; 53 52 beginningColor = [endingColor blendedColorWithFraction: 0.3 ofColor: [NSColor whiteColor]]; 54 fLowPriorityGradient = [[ CTGradient gradientWithBeginningColor: beginningColor endingColor: endingColor] retain];53 fLowPriorityGradient = [[NSGradient alloc] initWithStartingColor: beginningColor endingColor: endingColor]; 55 54 56 55 endingColor = [NSColor colorWithCalibratedRed: 225.0/255.0 green: 218.0/255.0 blue: 255.0/255.0 alpha: 1.0]; 57 56 beginningColor = [endingColor blendedColorWithFraction: 0.3 ofColor: [NSColor whiteColor]]; 58 fMixedPriorityGradient = [[ CTGradient gradientWithBeginningColor: beginningColor endingColor: endingColor] retain];57 fMixedPriorityGradient = [[NSGradient alloc] initWithStartingColor: beginningColor endingColor: endingColor]; 59 58 60 59 fMouseRow = -1; … … 186 185 if ([fTorrent checkForFiles: indexes] != NSOffState) 187 186 { 188 CTGradient * gradient = nil;187 NSGradient * gradient = nil; 189 188 190 189 NSSet * priorities = [fTorrent filePrioritiesForIndexes: indexes]; … … 210 209 NSRect rect = [self rectOfRow: row]; 211 210 rect.size.height -= 1.0; 212 [gradient fillRect: rect angle: 90];211 [gradient drawInRect: rect angle: 90]; 213 212 } 214 213 } -
trunk/macosx/GroupsController.m
r7498 r7508 24 24 25 25 #import "GroupsController.h" 26 #import "CTGradient.h"27 #import "NSBezierPathAdditions.h"28 #import "NSApplicationAdditions.h"29 26 30 27 #define ICON_WIDTH 16.0 … … 210 207 - (BOOL) usesAutoAssignRulesForIndex: (NSInteger) index 211 208 { 212 if (![NSApp isOnLeopardOrBetter])213 return NO;214 215 209 NSInteger orderIndex = [self rowValueForIndex: index]; 216 210 if (orderIndex == -1) … … 411 405 NSRect rect = NSMakeRect(0.0, 0.0, ICON_WIDTH, ICON_WIDTH); 412 406 413 NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: rect radius: 3.0];407 NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: rect xRadius: 3.0 yRadius: 3.0]; 414 408 NSImage * icon = [[NSImage alloc] initWithSize: rect.size]; 415 409 … … 419 413 420 414 //border 421 CTGradient * gradient = [CTGradient gradientWithBeginningColor: [color blendedColorWithFraction: 0.45 ofColor:415 NSGradient * gradient = [[NSGradient alloc] initWithStartingColor: [color blendedColorWithFraction: 0.45 ofColor: 422 416 [NSColor whiteColor]] endingColor: color]; 423 [gradient fillBezierPath: bp angle: 270.0]; 417 [gradient drawInBezierPath: bp angle: 270.0]; 418 [gradient release]; 424 419 425 420 //inside 426 bp = [NSBezierPath bezierPathWithRoundedRect: NSInsetRect(rect, 1.0, 1.0) radius: 3.0];427 gradient = [ CTGradient gradientWithBeginningColor: [color blendedColorWithFraction: 0.75 ofColor: [NSColor whiteColor]]421 bp = [NSBezierPath bezierPathWithRoundedRect: NSInsetRect(rect, 1.0, 1.0) xRadius: 3.0 yRadius: 3.0]; 422 gradient = [[NSGradient alloc] initWithStartingColor: [color blendedColorWithFraction: 0.75 ofColor: [NSColor whiteColor]] 428 423 endingColor: [color blendedColorWithFraction: 0.2 ofColor: [NSColor whiteColor]]]; 429 [gradient fillBezierPath: bp angle: 270.0]; 424 [gradient drawInBezierPath: bp angle: 270.0]; 425 [gradient release]; 430 426 431 427 [icon unlockFocus]; -
trunk/macosx/GroupsPrefsController.h
r7500 r7508 25 25 #import <Cocoa/Cocoa.h> 26 26 27 @class CTGradient;28 29 27 @interface GroupsPrefsController : NSObject 30 28 { 31 29 IBOutlet NSTableView * fTableView; 32 30 IBOutlet NSSegmentedControl * fAddRemoveControl; 33 31 34 32 IBOutlet NSColorWell * fSelectedColorView; 35 33 IBOutlet NSTextField * fSelectedColorNameField; 36 34 IBOutlet NSButton * fCustomLocationEnableCheck; 37 35 IBOutlet NSPopUpButton * fCustomLocationPopUp; 38 39 IBOutlet NSView * fGroupRulesPrefsContainer; 36 40 37 IBOutlet NSButton * fAutoAssignRulesEnableCheck; 41 38 IBOutlet NSButton * fAutoAssignRulesEditButton; -
trunk/macosx/GroupsPrefsController.m
r7500 r7508 25 25 #import "GroupsPrefsController.h" 26 26 #import "GroupsController.h" 27 #import "NSApplicationAdditions.h"28 27 #import "ExpandedPathToPathTransformer.h" 29 28 #import "ExpandedPathToIconTransformer.h" … … 45 44 { 46 45 [fTableView registerForDraggedTypes: [NSArray arrayWithObject: GROUP_TABLE_VIEW_DATA_TYPE]]; 47 48 if (![NSApp isOnLeopardOrBetter])49 {50 [fAddRemoveControl sizeToFit];51 [fAddRemoveControl setLabel: @"+" forSegment: ADD_TAG];52 [fAddRemoveControl setLabel: @"-" forSegment: REMOVE_TAG];53 [fGroupRulesPrefsContainer setHidden: YES]; //get rid of container when 10.5-only54 }55 46 56 47 [fSelectedColorView addObserver: self forKeyPath: @"color" options: 0 context: NULL]; -
trunk/macosx/InfoWindowController.m
r7312 r7508 33 33 #import "PiecesView.h" 34 34 #import "QuickLookController.h" 35 #import "NSApplicationAdditions.h"36 35 #import "NSStringAdditions.h" 37 36 #include "utils.h" //tr_getRatio() … … 168 167 169 168 //set table header tool tips 170 if ([NSApp isOnLeopardOrBetter]) 171 { 172 [[fPeerTable tableColumnWithIdentifier: @"Encryption"] setHeaderToolTip: NSLocalizedString(@"Encrypted Connection", 173 "inspector -> peer table -> header tool tip")]; 174 [[fPeerTable tableColumnWithIdentifier: @"Progress"] setHeaderToolTip: NSLocalizedString(@"Available", 175 "inspector -> peer table -> header tool tip")]; 176 [[fPeerTable tableColumnWithIdentifier: @"UL To"] setHeaderToolTip: NSLocalizedString(@"Uploading To Peer", 177 "inspector -> peer table -> header tool tip")]; 178 [[fPeerTable tableColumnWithIdentifier: @"DL From"] setHeaderToolTip: NSLocalizedString(@"Downloading From Peer", 179 "inspector -> peer table -> header tool tip")]; 180 181 [[fWebSeedTable tableColumnWithIdentifier: @"DL From"] setHeaderToolTip: NSLocalizedString(@"Downloading From Web Seed", 182 "inspector -> web seed table -> header tool tip")]; 183 } 184 else 185 { 186 [fTrackerAddRemoveControl sizeToFit]; 187 [fTrackerAddRemoveControl setLabel: @"+" forSegment: TRACKER_ADD_TAG]; 188 [fTrackerAddRemoveControl setLabel: @"-" forSegment: TRACKER_REMOVE_TAG]; 189 } 169 [[fPeerTable tableColumnWithIdentifier: @"Encryption"] setHeaderToolTip: NSLocalizedString(@"Encrypted Connection", 170 "inspector -> peer table -> header tool tip")]; 171 [[fPeerTable tableColumnWithIdentifier: @"Progress"] setHeaderToolTip: NSLocalizedString(@"Available", 172 "inspector -> peer table -> header tool tip")]; 173 [[fPeerTable tableColumnWithIdentifier: @"UL To"] setHeaderToolTip: NSLocalizedString(@"Uploading To Peer", 174 "inspector -> peer table -> header tool tip")]; 175 [[fPeerTable tableColumnWithIdentifier: @"DL From"] setHeaderToolTip: NSLocalizedString(@"Downloading From Peer", 176 "inspector -> peer table -> header tool tip")]; 177 178 [[fWebSeedTable tableColumnWithIdentifier: @"DL From"] setHeaderToolTip: NSLocalizedString(@"Downloading From Web Seed", 179 "inspector -> web seed table -> header tool tip")]; 190 180 191 181 //prepare for animating peer table and web seed table … … 249 239 if (numberSelected > 0) 250 240 { 251 [fImageView setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] 252 ? NSImageNameMultipleDocuments : @"NSApplicationIcon"]]; 241 [fImageView setImage: [NSImage imageNamed: NSImageNameMultipleDocuments]]; 253 242 254 243 [fNameField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d Torrents Selected", … … 1764 1753 [alert addButtonWithTitle: NSLocalizedString(@"Cancel", "Remove built-in tracker alert -> button")]; 1765 1754 1766 BOOL onLeopard = [NSApp isOnLeopardOrBetter]; 1767 if (onLeopard) 1768 [alert setShowsSuppressionButton: YES]; 1769 else 1770 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Remove built-in tracker alert -> button")]; 1755 [alert setShowsSuppressionButton: YES]; 1771 1756 1772 1757 NSInteger result = [alert runModal]; 1773 if ( (onLeopard ? [[alert suppressionButton] state] == NSOnState : result == NSAlertThirdButtonReturn))1758 if ([[alert suppressionButton] state] == NSOnState) 1774 1759 [[NSUserDefaults standardUserDefaults] setBool: NO forKey: @"WarningRemoveBuiltInTracker"]; 1775 1760 [alert release]; -
trunk/macosx/MessageWindowController.m
r7018 r7508 25 25 #import "MessageWindowController.h" 26 26 #import "NSStringAdditions.h" 27 #import "NSApplicationAdditions.h"28 27 #import <transmission.h> 29 28 … … 68 67 name: @"NSTableViewColumnDidResizeNotification" object: fMessageTable]; 69 68 70 if ([NSApp isOnLeopardOrBetter]) 71 [window setContentBorderThickness: [[fMessageTable enclosingScrollView] frame].origin.y forEdge: NSMinYEdge]; 69 [window setContentBorderThickness: [[fMessageTable enclosingScrollView] frame].origin.y forEdge: NSMinYEdge]; 72 70 73 71 //initially sort peer table by date -
trunk/macosx/NSStringAdditions.m
r7505 r7508 24 24 25 25 #import "NSStringAdditions.h" 26 #import "NSApplicationAdditions.h"27 26 #import <transmission.h> 28 27 … … 148 147 - (NSComparisonResult) compareFinder: (NSString *) string 149 148 { 150 const NSInteger comparisonOptions = [NSApp isOnLeopardOrBetter] 151 ? (NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch) 152 : (NSCaseInsensitiveSearch | NSNumericSearch); 149 const NSInteger comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch; 153 150 return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]]; 154 151 } … … 156 153 - (NSComparisonResult) compareNumeric: (NSString *) string 157 154 { 158 const NSInteger comparisonOptions = [NSApp isOnLeopardOrBetter] ? (NSNumericSearch | NSForcedOrderingSearch) : NSNumericSearch;155 const NSInteger comparisonOptions = NSNumericSearch | NSForcedOrderingSearch; 159 156 return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]]; 160 157 } -
trunk/macosx/PiecesView.m
r7018 r7508 26 26 #import "Torrent.h" 27 27 #import "InfoWindowController.h" 28 #import "CTGradient.h"29 28 #import "utils.h" 30 29 … … 48 47 49 48 [fBack lockFocus]; 50 CTGradient * gradient = [CTGradient gradientWithBeginningColor: [NSColor colorWithCalibratedWhite: 0.0f alpha: 0.4f]49 NSGradient * gradient = [[NSGradient alloc] initWithStartingColor: [NSColor colorWithCalibratedWhite: 0.0f alpha: 0.4f] 51 50 endingColor: [NSColor colorWithCalibratedWhite: 0.2f alpha: 0.4f]]; 52 [gradient fillRect: [self bounds] angle: 90.0f]; 51 [gradient drawInRect: [self bounds] angle: 90.0f]; 52 [gradient release]; 53 53 [fBack unlockFocus]; 54 54 -
trunk/macosx/PortChecker.m
r6737 r7508 24 24 25 25 #import "PortChecker.h" 26 #import "NSApplicationAdditions.h"27 26 28 27 #define CHECKER_URL @"http://portcheck.transmissionbt.com/%d" … … 131 130 132 131 NSURLRequest * portProbeRequest = [NSURLRequest requestWithURL: [NSURL URLWithString: 133 [NSString stringWithFormat: CHECKER_URL, fPortNumber]] cachePolicy: 134 [NSApp isOnLeopardOrBetter] ? NSURLRequestReloadIgnoringLocalAndRemoteCacheData : NSURLRequestReloadIgnoringCacheData 135 timeoutInterval: 15.0]; 132 [NSString stringWithFormat: CHECKER_URL, fPortNumber]] 133 cachePolicy: NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval: 15.0]; 136 134 137 135 if ((fConnection = [[NSURLConnection alloc] initWithRequest: portProbeRequest delegate: self])) -
trunk/macosx/PrefsController.m
r7483 r7508 28 28 #import "PortChecker.h" 29 29 #import "BonjourController.h" 30 #import "NSApplicationAdditions.h"31 30 #import "NSStringAdditions.h" 32 31 #import "UKKQueue.h" … … 177 176 [self setPrefView: nil]; 178 177 179 if (![NSApp isOnLeopardOrBetter])180 {181 [fRPCAddRemoveControl sizeToFit];182 [fRPCAddRemoveControl setLabel: @"+" forSegment: RPC_IP_ADD_TAG];183 [fRPCAddRemoveControl setLabel: @"-" forSegment: RPC_IP_REMOVE_TAG];184 }185 186 178 //set download folder 187 179 [fFolderPopUp selectItemAtIndex: [fDefaults boolForKey: @"DownloadLocationConstant"] ? DOWNLOAD_FOLDER : DOWNLOAD_TORRENT]; … … 257 249 { 258 250 [item setLabel: NSLocalizedString(@"General", "Preferences -> toolbar item title")]; 259 [item setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] ? NSImageNamePreferencesGeneral : @"Preferences.png"]];251 [item setImage: [NSImage imageNamed: NSImageNamePreferencesGeneral]]; 260 252 [item setTarget: self]; 261 253 [item setAction: @selector(setPrefView:)]; … … 289 281 { 290 282 [item setLabel: NSLocalizedString(@"Peers", "Preferences -> toolbar item title")]; 291 [item setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] ? NSImageNameUserGroup : @"Peers.png"]];283 [item setImage: [NSImage imageNamed: NSImageNameUserGroup]]; 292 284 [item setTarget: self]; 293 285 [item setAction: @selector(setPrefView:)]; … … 297 289 { 298 290 [item setLabel: NSLocalizedString(@"Network", "Preferences -> toolbar item title")]; 299 [item setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter] ? NSImageNameNetwork : @"Network.png"]];291 [item setImage: [NSImage imageNamed: NSImageNameNetwork]]; 300 292 [item setTarget: self]; 301 293 [item setAction: @selector(setPrefView:)]; … … 413 405 NSMutableArray * sounds = [NSMutableArray array]; 414 406 415 NSMutableArray * directories = [NSMutableArray arrayWithObjects: @"/System/Library/Sounds", @"/Library/Sounds", nil]; 416 if ([NSApp isOnLeopardOrBetter]) 417 [directories addObject: [NSHomeDirectory() stringByAppendingPathComponent: @"Library/Sounds"]]; 407 NSArray * directories = [NSArray arrayWithObjects: @"/System/Library/Sounds", @"/Library/Sounds", @"Library/Sounds", nil]; 418 408 419 409 BOOL isDirectory; … … 1162 1152 } 1163 1153 } 1164 1165 //for network view make sure progress indicator hides itself (get around a Tiger bug)1166 if (![NSApp isOnLeopardOrBetter] && view == fNetworkView && [fPortStatusImage image])1167 [fPortStatusProgress setDisplayedWhenStopped: NO];1168 1154 } 1169 1155 -
trunk/macosx/ProgressGradients.h
r6995 r7508 23 23 *****************************************************************************/ 24 24 25 @class CTGradient;26 27 25 @interface ProgressGradients : NSObject 28 26 29 + ( CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent;27 + (NSGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent; 30 28 31 + ( CTGradient *) progressWhiteGradient;32 + ( CTGradient *) progressGrayGradient;33 + ( CTGradient *) progressLightGrayGradient;34 + ( CTGradient *) progressBlueGradient;35 + ( CTGradient *) progressDarkBlueGradient;36 + ( CTGradient *) progressGreenGradient;37 + ( CTGradient *) progressLightGreenGradient;38 + ( CTGradient *) progressDarkGreenGradient;39 + ( CTGradient *) progressRedGradient;40 + ( CTGradient *) progressYellowGradient;29 + (NSGradient *) progressWhiteGradient; 30 + (NSGradient *) progressGrayGradient; 31 + (NSGradient *) progressLightGrayGradient; 32 + (NSGradient *) progressBlueGradient; 33 + (NSGradient *) progressDarkBlueGradient; 34 + (NSGradient *) progressGreenGradient; 35 + (NSGradient *) progressLightGreenGradient; 36 + (NSGradient *) progressDarkGreenGradient; 37 + (NSGradient *) progressRedGradient; 38 + (NSGradient *) progressYellowGradient; 41 39 42 40 @end -
trunk/macosx/ProgressGradients.m
r6996 r7508 24 24 25 25 #import "ProgressGradients.h" 26 #import "CTGradient.h"27 26 28 27 @implementation ProgressGradients 29 28 30 + ( CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent29 + (NSGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent 31 30 { 32 CTGradientElement color1; 33 color1.red = redComponent; 34 color1.green = greenComponent; 35 color1.blue = blueComponent; 36 color1.alpha = 1.0f; 37 color1.position = 0.0f; 31 NSColor * baseColor = [NSColor colorWithCalibratedRed: redComponent green: greenComponent blue: blueComponent alpha: 1.0]; 38 32 39 CTGradientElement color2; 40 color2.red = redComponent * 0.95f; 41 color2.green = greenComponent * 0.95f; 42 color2.blue = blueComponent * 0.95f; 43 color2.alpha = 1.0f; 44 color2.position = 0.5f; 33 NSColor * color2 = [NSColor colorWithCalibratedRed: redComponent * 0.95 green: greenComponent * 0.95 blue: blueComponent * 0.95 34 alpha: 1.0]; 45 35 46 CTGradientElement color3; 47 color3.red = redComponent * 0.85f; 48 color3.green = greenComponent * 0.85f; 49 color3.blue = blueComponent * 0.85f; 50 color3.alpha = 1.0f; 51 color3.position = 0.5f; 36 NSColor * color3 = [NSColor colorWithCalibratedRed: redComponent * 0.85 green: greenComponent * 0.85 blue: blueComponent * 0.85 37 alpha: 1.0]; 52 38 53 CTGradientElement color4; 54 color4.red = redComponent; 55 color4.green = greenComponent; 56 color4.blue = blueComponent; 57 color4.alpha = 1.0f; 58 color4.position = 1.0f; 59 60 CTGradient * newInstance = [[CTGradient alloc] init]; 61 [newInstance addElement: &color1]; 62 [newInstance addElement: &color2]; 63 [newInstance addElement: &color3]; 64 [newInstance addElement: &color4]; 65 66 return [newInstance autorelease]; 39 NSGradient * progressGradient = [[NSGradient alloc] initWithColorsAndLocations: baseColor, 0.0, color2, 0.5, color3, 0.5, 40 baseColor, 1.0, nil]; 41 return [progressGradient autorelease]; 67 42 } 68 43 69 CTGradient * fProgressWhiteGradient = nil;70 + ( CTGradient *) progressWhiteGradient44 NSGradient * fProgressWhiteGradient = nil; 45 + (NSGradient *) progressWhiteGradient 71 46 { 72 47 if (!fProgressWhiteGradient) … … 75 50 } 76 51 77 CTGradient * fProgressGrayGradient = nil;78 + ( CTGradient *) progressGrayGradient52 NSGradient * fProgressGrayGradient = nil; 53 + (NSGradient *) progressGrayGradient 79 54 { 80 55 if (!fProgressGrayGradient) … … 83 58 } 84 59 85 CTGradient * fProgressLightGrayGradient = nil;86 + ( CTGradient *) progressLightGrayGradient60 NSGradient * fProgressLightGrayGradient = nil; 61 + (NSGradient *) progressLightGrayGradient 87 62 { 88 63 if (!fProgressLightGrayGradient) … … 91 66 } 92 67 93 CTGradient * fProgressBlueGradient = nil;94 + ( CTGradient *) progressBlueGradient68 NSGradient * fProgressBlueGradient = nil; 69 + (NSGradient *) progressBlueGradient 95 70 { 96 71 if (!fProgressBlueGradient) … … 99 74 } 100 75 101 CTGradient * fProgressDarkBlueGradient = nil;102 + ( CTGradient *) progressDarkBlueGradient76 NSGradient * fProgressDarkBlueGradient = nil; 77 + (NSGradient *) progressDarkBlueGradient 103 78 { 104 79 if (!fProgressDarkBlueGradient) … … 107 82 } 108 83 109 CTGradient * fProgressGreenGradient = nil;110 + ( CTGradient *) progressGreenGradient84 NSGradient * fProgressGreenGradient = nil; 85 + (NSGradient *) progressGreenGradient 111 86 { 112 87 if (!fProgressGreenGradient) … … 115 90 } 116 91 117 CTGradient * fProgressLightGreenGradient = nil;118 + ( CTGradient *) progressLightGreenGradient92 NSGradient * fProgressLightGreenGradient = nil; 93 + (NSGradient *) progressLightGreenGradient 119 94 { 120 95 if (!fProgressLightGreenGradient) … … 123 98 } 124 99 125 CTGradient * fProgressDarkGreenGradient = nil;126 + ( CTGradient *) progressDarkGreenGradient100 NSGradient * fProgressDarkGreenGradient = nil; 101 + (NSGradient *) progressDarkGreenGradient 127 102 { 128 103 if (!fProgressDarkGreenGradient) … … 131 106 } 132 107 133 CTGradient * fProgressRedGradient = nil;134 + ( CTGradient *) progressRedGradient108 NSGradient * fProgressRedGradient = nil; 109 + (NSGradient *) progressRedGradient 135 110 { 136 111 if (!fProgressRedGradient) … … 139 114 } 140 115 141 CTGradient * fProgressYellowGradient = nil;142 + ( CTGradient *) progressYellowGradient116 NSGradient * fProgressYellowGradient = nil; 117 + (NSGradient *) progressYellowGradient 143 118 { 144 119 if (!fProgressYellowGradient) -
trunk/macosx/QuickLookController.m
r6661 r7508 145 145 fInfoController = infoController; 146 146 147 //load the QuickLook framework and set the delegate , no point on trying this on Tiger147 //load the QuickLook framework and set the delegate 148 148 //animation types: 0 = none; 1 = fade; 2 = zoom 149 149 fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load]; -
trunk/macosx/StatsWindowController.m
r7468 r7508 25 25 #import "StatsWindowController.h" 26 26 #import "NSStringAdditions.h" 27 #import "NSApplicationAdditions.h"28 27 29 28 #define UPDATE_SECONDS 1.0 … … 147 146 [alert addButtonWithTitle: NSLocalizedString(@"Reset", "Stats reset -> button")]; 148 147 [alert addButtonWithTitle: NSLocalizedString(@"Cancel", "Stats reset -> button")]; 149 150 if ([NSApp isOnLeopardOrBetter]) 151 [alert setShowsSuppressionButton: YES]; 152 else 153 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Stats reset -> button")]; 148 [alert setShowsSuppressionButton: YES]; 154 149 155 150 [alert beginSheetModalForWindow: [self window] modalDelegate: self … … 211 206 [[alert window] orderOut: nil]; 212 207 213 if ( ([NSApp isOnLeopardOrBetter] ? [[alert suppressionButton] state] == NSOnState : code == NSAlertThirdButtonReturn))208 if ([[alert suppressionButton] state] == NSOnState) 214 209 [[NSUserDefaults standardUserDefaults] setBool: NO forKey: @"WarningResetStats"]; 215 210 -
trunk/macosx/Torrent.m
r7493 r7508 26 26 #import "GroupsController.h" 27 27 #import "FileListNode.h" 28 #import "NSApplicationAdditions.h"29 28 #import "NSStringAdditions.h" 30 29 #import "utils.h" //tr_httpIsValidURL … … 557 556 if ((volumeName = [[fileManager componentsToDisplayForPath: downloadFolder] objectAtIndex: 0])) 558 557 { 559 BOOL onLeopard = [NSApp isOnLeopardOrBetter]; 560 561 NSDictionary * systemAttributes = onLeopard ? [fileManager attributesOfFileSystemForPath: downloadFolder error: NULL] 562 : [fileManager fileSystemAttributesAtPath: downloadFolder]; 558 NSDictionary * systemAttributes = [fileManager attributesOfFileSystemForPath: downloadFolder error: NULL]; 563 559 uint64_t remainingSpace = [[systemAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue]; 564 560 … … 576 572 [alert addButtonWithTitle: NSLocalizedString(@"Download Anyway", "Torrent disk space alert -> button")]; 577 573 578 if (onLeopard) 579 { 580 [alert setShowsSuppressionButton: YES]; 581 [[alert suppressionButton] setTitle: NSLocalizedString(@"Do not check disk space again", 582 "Torrent disk space alert -> button")]; 583 } 584 else 585 [alert addButtonWithTitle: NSLocalizedString(@"Always Download", "Torrent disk space alert -> button")]; 574 [alert setShowsSuppressionButton: YES]; 575 [[alert suppressionButton] setTitle: NSLocalizedString(@"Do not check disk space again", 576 "Torrent disk space alert -> button")]; 586 577 587 578 NSInteger result = [alert runModal]; 588 if ( (onLeopard ? [[alert suppressionButton] state] == NSOnState : result == NSAlertThirdButtonReturn))579 if ([[alert suppressionButton] state] == NSOnState) 589 580 [fDefaults setBool: NO forKey: @"WarningRemainingSpace"]; 590 581 [alert release]; … … 1988 1979 { 1989 1980 //if cannot trash, just delete it (will work if it's on a remote volume) 1990 if ([NSApp isOnLeopardOrBetter]) 1991 { 1992 NSError * error; 1993 if (![[NSFileManager defaultManager] removeItemAtPath: path error: &error]) 1994 NSLog(@"Could not trash %@: %@", path, [error localizedDescription]); 1995 } 1996 else 1997 { 1998 if (![[NSFileManager defaultManager] removeFileAtPath: path handler: nil]) 1999 NSLog(@"Could not trash %@", path); 2000 } 1981 NSError * error; 1982 if (![[NSFileManager defaultManager] removeItemAtPath: path error: &error]) 1983 NSLog(@"Could not trash %@: %@", path, [error localizedDescription]); 2001 1984 } 2002 1985 } … … 2004 1987 - (void) setTimeMachineExclude: (BOOL) exclude forPath: (NSString *) path 2005 1988 { 2006 if ([NSApp isOnLeopardOrBetter]) 2007 CSBackupSetItemExcluded((CFURLRef)[NSURL fileURLWithPath: path], exclude, true); 1989 CSBackupSetItemExcluded((CFURLRef)[NSURL fileURLWithPath: path], exclude, true); 2008 1990 } 2009 1991 -
trunk/macosx/TorrentCell.m
r7444 r7508 26 26 #import "TorrentTableView.h" 27 27 #import "GroupsController.h" 28 #import "NSApplicationAdditions.h"29 28 #import "NSStringAdditions.h" 30 #import "NSBezierPathAdditions.h"31 29 #import "ProgressGradients.h" 32 #import "CTGradient.h"33 30 34 31 #define BAR_HEIGHT 12.0f … … 295 292 else; 296 293 297 if ([NSApp isOnLeopardOrBetter]) 298 [controlView updateTrackingAreas]; 294 [controlView updateTrackingAreas]; 299 295 300 296 return YES; … … 400 396 401 397 //border 402 NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: groupRect radius: radius];398 NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: groupRect xRadius: radius yRadius: radius]; 403 399 [darkGroupColor set]; 404 400 [bp setLineWidth: 2.0f]; … … 406 402 407 403 //inside 408 bp = [NSBezierPath bezierPathWithRoundedRect: groupRect radius: radius];409 CTGradient * gradient = [CTGradient gradientWithBeginningColor: [groupColor blendedColorWithFraction: 0.7f404 bp = [NSBezierPath bezierPathWithRoundedRect: groupRect xRadius: radius yRadius: radius]; 405 NSGradient * gradient = [[NSGradient alloc] initWithStartingColor: [groupColor blendedColorWithFraction: 0.7f 410 406 ofColor: [NSColor whiteColor]] endingColor: darkGroupColor]; 411 [gradient fillBezierPath: bp angle: 90.0f]; 407 [gradient drawInBezierPath: bp angle: 90.0f]; 408 [gradient release]; 412 409 } 413 410 … … 590 587 noIncludeRect.size.width = rightNoIncludeWidth; 591 588 592 [[ProgressGradients progressLightGrayGradient] fillRect: noIncludeRect angle: 90];589 [[ProgressGradients progressLightGrayGradient] drawInRect: noIncludeRect angle: 90]; 593 590 } 594 591 … … 607 604 notAvailableRect.size.width = notAvailableWidth; 608 605 609 [[ProgressGradients progressRedGradient] fillRect: notAvailableRect angle: 90];606 [[ProgressGradients progressRedGradient] drawInRect: notAvailableRect angle: 90]; 610 607 } 611 608 } … … 617 614 includeRect.size.width = rightWidth; 618 615 619 [[ProgressGradients progressWhiteGradient] fillRect: includeRect angle: 90];616 [[ProgressGradients progressWhiteGradient] drawInRect: includeRect angle: 90]; 620 617 } 621 618 } … … 630 627 { 631 628 if ([torrent isChecking]) 632 [[ProgressGradients progressYellowGradient] fillRect: completeRect angle: 90];629 [[ProgressGradients progressYellowGradient] drawInRect: completeRect angle: 90]; 633 630 else if ([torrent isSeeding]) 634 631 { … … 642 639 ratioLeftRect.size.width = ratioLeftWidth; 643 640 644 [[ProgressGradients progressLightGreenGradient] fillRect: ratioLeftRect angle: 90];641 [[ProgressGradients progressLightGreenGradient] drawInRect: ratioLeftRect angle: 90]; 645 642 } 646 643 … … 649 646 completeRect.size.width = leftWidth; 650 647 651 [[ProgressGradients progressGreenGradient] fillRect: completeRect angle: 90];648 [[ProgressGradients progressGreenGradient] drawInRect: completeRect angle: 90]; 652 649 } 653 650 } 654 651 else 655 [[ProgressGradients progressBlueGradient] fillRect: completeRect angle: 90];652 [[ProgressGradients progressBlueGradient] drawInRect: completeRect angle: 90]; 656 653 } 657 654 else … … 660 657 { 661 658 if ([torrent progressLeft] <= 0.0f) 662 [[ProgressGradients progressDarkGreenGradient] fillRect: completeRect angle: 90];659 [[ProgressGradients progressDarkGreenGradient] drawInRect: completeRect angle: 90]; 663 660 else 664 [[ProgressGradients progressDarkBlueGradient] fillRect: completeRect angle: 90];661 [[ProgressGradients progressDarkBlueGradient] drawInRect: completeRect angle: 90]; 665 662 } 666 663 else 667 [[ProgressGradients progressGrayGradient] fillRect: completeRect angle: 90];664 [[ProgressGradients progressGrayGradient] drawInRect: completeRect angle: 90]; 668 665 } 669 666 } -
trunk/macosx/TorrentTableView.m
r7247 r7508 29 29 #import "FileListNode.h" 30 30 #import "QuickLookController.h" 31 #import "NSApplicationAdditions.h"32 31 33 32 #define MAX_GROUP 999999 … … 44 43 @interface TorrentTableView (Private) 45 44 46 //unused on Leopard47 - (BOOL) pointInControlRect: (NSPoint) point;48 - (BOOL) pointInRevealRect: (NSPoint) point;49 - (BOOL) pointInActionRect: (NSPoint) point;50 51 45 - (BOOL) pointInGroupStatusRect: (NSPoint) point; 52 46 … … 66 60 67 61 fTorrentCell = [[TorrentCell alloc] init]; 68 69 if (![NSApp isOnLeopardOrBetter])70 {71 NSTableColumn * groupColumn = [self tableColumnWithIdentifier: @"Group"];72 [self setOutlineTableColumn: groupColumn];73 74 //remove all unnecessary columns75 for (NSInteger i = [[self tableColumns] count]-1; i >= 0; i--)76 {77 NSTableColumn * column = [[self tableColumns] objectAtIndex: i];78 if (column != groupColumn)79 [self removeTableColumn: column];80 }81 82 [self sizeLastColumnToFit];83 84 [groupColumn setDataCell: fTorrentCell];85 }86 62 87 63 NSData * groupData = [fDefaults dataForKey: @"CollapsedGroups"]; … … 176 152 [cell setRepresentedObject: item]; 177 153 178 NSInteger row = [self rowForItem: item]; 179 if ([NSApp isOnLeopardOrBetter]) 180 { 181 [cell setControlHover: row == fMouseControlRow]; 182 [cell setRevealHover: row == fMouseRevealRow]; 183 [cell setActionHover: row == fMouseActionRow]; 184 } 154 const NSInteger row = [self rowForItem: item]; 155 [cell setControlHover: row == fMouseControlRow]; 156 [cell setRevealHover: row == fMouseRevealRow]; 157 [cell setActionHover: row == fMouseActionRow]; 185 158 [cell setActionPushed: row == fActionPushedRow]; 186 159 } … … 205 178 - (NSRect) frameOfCellAtColumn: (NSInteger) column row: (NSInteger) row 206 179 { 207 if (column == -1 || ![NSApp isOnLeopardOrBetter])180 if (column == -1) 208 181 return [self rectOfRow: row]; 209 182 else … … 273 246 fMouseActionRow = -1; 274 247 275 if (![NSApp isOnLeopardOrBetter])276 return;277 278 248 NSEnumerator * enumerator = [[self trackingAreas] objectEnumerator]; 279 249 NSTrackingArea * area; … … 388 358 } 389 359 390 BOOL pushed; 391 if ([NSApp isOnLeopardOrBetter]) 392 pushed = row != -1 && (fMouseActionRow == row || fMouseRevealRow == row || fMouseControlRow == row); 393 else 394 pushed = [self pointInControlRect: point] || [self pointInRevealRect: point] || [self pointInActionRect: point]; 360 const BOOL pushed = row != -1 && (fMouseActionRow == row || fMouseRevealRow == row || fMouseControlRow == row); 395 361 396 362 //if pushing a button, don't change the selected rows … … 404 370 405 371 //avoid weird behavior when showing menu by doing this after mouse down 406 if ( [NSApp isOnLeopardOrBetter] ? row != -1 && fMouseActionRow == row : [self pointInActionRect: point])372 if (row != -1 && fMouseActionRow == row) 407 373 { 408 374 fActionPushedRow = row; … … 884 850 @implementation TorrentTableView (Private) 885 851 886 - (BOOL) pointInControlRect: (NSPoint) point887 {888 NSInteger row = [self rowAtPoint: point];889 if (row < 0 || ![[self itemAtRow: row] isKindOfClass: [Torrent class]])890 return NO;891 892 return NSPointInRect(point, [fTorrentCell controlButtonRectForBounds: [self rectOfRow: row]]);893 }894 895 - (BOOL) pointInRevealRect: (NSPoint) point896 {897 NSInteger row = [self rowAtPoint: point];898 if (row < 0 || ![[self itemAtRow: row] isKindOfClass: [Torrent class]])899 return NO;900 901 return NSPointInRect(point, [fTorrentCell revealButtonRectForBounds: [self rectOfRow: row]]);902 }903 904 - (BOOL) pointInActionRect: (NSPoint) point905 {906 NSInteger row = [self rowAtPoint: point];907 if (row < 0 || ![[self itemAtRow: row] isKindOfClass: [Torrent class]])908 return NO;909 910 return NSPointInRect(point, [fTorrentCell iconRectForBounds: [self rectOfRow: row]]);911 }912 913 852 - (BOOL) pointInGroupStatusRect: (NSPoint) point 914 853 { -
trunk/macosx/TransmissionHelp/html/pffirewall.html
r4091 r7508 21 21 </div> 22 22 <br> 23 <h3>On 10.4 Tiger</h3>24 <div summary="To do this" id="taskbox">25 <ol>26 <li>Open Transmission, go to Preferences >> Network and enter a number for the port. It is recommended you pick a random number between 49152 and 65535. Let's use 50001 for now. Then quit Transmission. </li>27 <li>Open System Prefs >> Sharing >> Firewall. Click "New." In the "Port Name" pop-up menu, select Other, and fill in the settings as follows: </li>28 <ul>29 <li>TCP Port Number(s): the port you chose in step 1 - eg 50001. </li>30 <li>UDP Port Number(s): the port you chose in step 1 - eg 50001. </li>31 <li>Description: Transmission </li>32 </ul>33 <li>Click OK. </li>34 <p>NB: To disable the firewall, click Stop.35 </ol>36 </div>37 <h3>On 10.5 Leopard</h3>38 23 <p>Upon opening Transmission for the first time, a Mac OS X dialogue box should appear asking if you will allow Transmission to receive incoming connections. Click Accept. 39 24 <p>If this doesn't happen, you can add Transmission to Leopard's firewall manually: -
trunk/macosx/en.lproj/MainMenu.xib
r7506 r7508 9 9 <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> 10 10 <bool key="EncodedWithXMLCoder">YES</bool> 11 <integer value="2"/> 11 12 <integer value="1603"/> 12 13 <integer value="1480"/> 13 14 <integer value="456"/> 14 <integer value="3078"/>15 <integer value="2"/>16 15 </object> 17 16 <object class="NSArray" key="IBDocument.PluginDependencies"> … … 73 72 <int key="NSButtonFlags">-2031075073</int> 74 73 <int key="NSButtonFlags2">96</int> 75 <object class="NSImage" key="NSNormalImage"> 76 <int key="NSImageFlags">549650432</int> 77 <string key="NSSize">{1, 1}</string> 78 <object class="NSMutableArray" key="NSReps"> 79 <bool key="EncodedWithXMLCoder">YES</bool> 80 <object class="NSArray"> 81 <bool key="EncodedWithXMLCoder">YES</bool> 82 <integer value="0" id="8"/> 83 <object class="NSBitmapImageRep"> 84 <object class="NSData" key="NSTIFFRepresentation"> 85 <bytes key="NS.bytes">TU0AKgAAAAoAAAANAQAAAwAAAAEAAQAAAQEAAwAAAAEAAQAAAQIAAwAAAAIACAAIAQMAAwAAAAEAAQAA 86 AQYAAwAAAAEAAQAAAREABAAAAAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEAAgAAARYAAwAAAAEgAAAA 87 ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes> 88 </object> 89 </object> 90 </object> 91 </object> 92 <object class="NSColor" key="NSColor" id="98649701"> 93 <int key="NSColorSpace">3</int> 94 <bytes key="NSWhite">MCAwAA</bytes> 95 </object> 74 <object class="NSCustomResource" key="NSNormalImage" id="514467402"> 75 <string key="NSClassName">NSImage</string> 76 <string key="NSResourceName">NSActionTemplate</string> 96 77 </object> 97 78 <string key="NSAlternateContents"/> … … 108 89 <int key="NSKeyEquivModMask">1048576</int> 109 90 <int key="NSMnemonicLoc">2147483647</int> 91 <reference key="NSImage" ref="514467402"/> 110 92 <object class="NSCustomResource" key="NSOnImage" id="322614661"> 111 93 <string key="NSClassName">NSImage</string> … … 221 203 </object> 222 204 </object> 223 </object>224 <object class="NSBox" id="382627929">225 <reference key="NSNextResponder" ref="303120456"/>226 <int key="NSvFlags">290</int>227 <string key="NSFrame">{{0, 20}, {468, 5}}</string>228 <reference key="NSSuperview" ref="303120456"/>229 <string key="NSOffsets">{0, 0}</string>230 <object class="NSTextFieldCell" key="NSTitleCell">231 <int key="NSCellFlags">67239424</int>232 <int key="NSCellFlags2">0</int>233 <string key="NSContents">Box</string>234 <reference key="NSSupport" ref="622385820"/>235 <object class="NSColor" key="NSBackgroundColor" id="570792161">236 <int key="NSColorSpace">6</int>237 <string key="NSCatalogName">System</string>238 <string key="NSColorName">textBackgroundColor</string>239 <object class="NSColor" key="NSColor" id="162898637">240 <int key="NSColorSpace">3</int>241 <bytes key="NSWhite">MQA</bytes>242 </object>243 </object>244 <object class="NSColor" key="NSTextColor">245 <int key="NSColorSpace">3</int>246 <bytes key="NSWhite">MCAwLjgwMDAwMDAxAA</bytes>247 </object>248 </object>249 <int key="NSBorderType">3</int>250 <int key="NSBoxType">2</int>251 <int key="NSTitlePosition">0</int>252 <bool key="NSTransparent">NO</bool>253 205 </object> 254 206 <object class="NSScrollView" id="87647552"> … … 306 258 <object class="NSArray"> 307 259 <bool key="EncodedWithXMLCoder">YES</bool> 308 < reference ref="8"/>260 <integer value="0" id="8"/> 309 261 <object class="NSCachedImageRep"> 310 262 <object class="NSData" key="NSTIFFRepresentation"> … … 1832 1784 </object> 1833 1785 </object> 1834 <reference key="NSColor" ref="98649701"/> 1786 <object class="NSColor" key="NSColor" id="98649701"> 1787 <int key="NSColorSpace">3</int> 1788 <bytes key="NSWhite">MCAwAA</bytes> 1789 </object> 1835 1790 </object> 1836 1791 <reference key="NSSupport" ref="26"/> … … 1856 1811 <string key="NSCatalogName">System</string> 1857 1812 <string key="NSColorName">headerColor</string> 1858 <reference key="NSColor" ref="162898637"/> 1813 <object class="NSColor" key="NSColor" id="162898637"> 1814 <int key="NSColorSpace">3</int> 1815 <bytes key="NSWhite">MQA</bytes> 1816 </object> 1859 1817 </object> 1860 1818 <reference key="NSTextColor" ref="441405713"/> … … 2000 1958 <string key="NSFrameSize">{468, 173}</string> 2001 1959 <reference key="NSSuperview" ref="87647552"/> 2002 <reference key="NSNextKeyView" ref="675318801"/>2003 1960 <reference key="NSDocView" ref="675318801"/> 2004 1961 <reference key="NSBGColor" ref="139722115"/> … … 2027 1984 <string key="NSFrame">{{0, 23}, {468, 173}}</string> 2028 1985 <reference key="NSSuperview" ref="303120456"/> 2029 <reference key="NSNextKeyView" ref="306237956"/>2030 1986 <int key="NSsFlags">528</int> 2031 1987 <reference key="NSVScroller" ref="1068338331"/> … … 3595 3551 </object> 3596 3552 </object> 3597 <object class="NSTextField" id="914996384">3598 <reference key="NSNextResponder" ref="492482618"/>3599 <int key="NSvFlags">-2147483382</int>3600 <string key="NSFrame">{{21, 4}, {184, 14}}</string>3601 <reference key="NSSuperview" ref="492482618"/>3602 <bool key="NSEnabled">YES</bool>3603 <object class="NSTextFieldCell" key="NSCell" id="1054398883">3604 <int key="NSCellFlags">67239488</int>3605 <int key="NSCellFlags2">272761856</int>3606 <string key="NSContents">Ratio 999.9</string>3607 <reference key="NSSupport" ref="26"/>3608 <reference key="NSControlView" ref="914996384"/>3609 <reference key="NSBackgroundColor" ref="969793804"/>3610 <reference key="NSTextColor" ref="911300388"/>3611 </object>3612 </object>3613 <object class="NSImageView" id="679494460">3614 <reference key="NSNextResponder" ref="492482618"/>3615 <int key="NSvFlags">-2147483380</int>3616 <object class="NSMutableSet" key="NSDragTypes">3617 <bool key="EncodedWithXMLCoder">YES</bool>3618 <object class="NSMutableArray" key="set.sortedObjects">3619 <bool key="EncodedWithXMLCoder">YES</bool>3620 <string>Apple PDF pasteboard type</string>3621 <string>Apple PICT pasteboard type</string>3622 <string>Apple PNG pasteboard type</string>3623 <string>NSFilenamesPboardType</string>3624 <string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>3625 <string>NeXT TIFF v4.0 pasteboard type</string>3626 </object>3627 </object>3628 <string key="NSFrame">{{10, 5}, {10, 12}}</string>3629 <reference key="NSSuperview" ref="492482618"/>3630 <bool key="NSEnabled">YES</bool>3631 <object class="NSImageCell" key="NSCell" id="50727597">3632 <int key="NSCellFlags">130560</int>3633 <int key="NSCellFlags2">33554432</int>3634 <object class="NSCustomResource" key="NSContents" id="814379806">3635 <string key="NSClassName">NSImage</string>3636 <string key="NSResourceName">YingYangTemplate</string>3637 </object>3638 <int key="NSAlign">0</int>3639 <int key="NSScale">0</int>3640 <int key="NSStyle">0</int>3641 <bool key="NSAnimates">NO</bool>3642 </object>3643 <bool key="NSEditable">YES</bool>3644 </object>3645 3553 </object> 3646 3554 <string key="NSFrameSize">{400, 21}</string> … … 3672 3580 <bool key="NSDrawsBackground">YES</bool> 3673 3581 <int key="NSTextBezelStyle">1</int> 3674 <reference key="NSBackgroundColor" ref="570792161"/> 3582 <object class="NSColor" key="NSBackgroundColor" id="570792161"> 3583 <int key="NSColorSpace">6</int> 3584 <string key="NSCatalogName">System</string> 3585 <string key="NSColorName">textBackgroundColor</string> 3586 <reference key="NSColor" ref="162898637"/> 3587 </object> 3675 3588 <reference key="NSTextColor" ref="911300388"/> 3676 3589 <object class="NSButtonCell" key="NSSearchButtonCell"> … … 4614 4527 <int key="NSKeyEquivModMask">1048576</int> 4615 4528 <int key="NSMnemonicLoc">2147483647</int> 4616 <reference key="NSImage" ref="814379806"/> 4529 <object class="NSCustomResource" key="NSImage"> 4530 <string key="NSClassName">NSImage</string> 4531 <string key="NSResourceName">YingYangTemplate</string> 4532 </object> 4617 4533 <reference key="NSOnImage" ref="322614661"/> 4618 4534 <reference key="NSMixedImage" ref="3851078"/> … … 5828 5744 <object class="IBConnectionRecord"> 5829 5745 <object class="IBOutletConnection" key="connection"> 5830 <string key="label">menu</string>5831 <reference key="source" ref="914996384"/>5832 <reference key="destination" ref="235340910"/>5833 </object>5834 <int key="connectionID">2755</int>5835 </object>5836 <object class="IBConnectionRecord">5837 <object class="IBOutletConnection" key="connection">5838 <string key="label">fStatusTigerField</string>5839 <reference key="source" ref="30116300"/>5840 <reference key="destination" ref="914996384"/>5841 </object>5842 <int key="connectionID">2756</int>5843 </object>5844 <object class="IBConnectionRecord">5845 <object class="IBOutletConnection" key="connection">5846 <string key="label">fStatusTigerImageView</string>5847 <reference key="source" ref="30116300"/>5848 <reference key="destination" ref="679494460"/>5849 </object>5850 <int key="connectionID">2757</int>5851 </object>5852 <object class="IBConnectionRecord">5853 <object class="IBOutletConnection" key="connection">5854 <string key="label">fBottomTigerLine</string>5855 <reference key="source" ref="30116300"/>5856 <reference key="destination" ref="382627929"/>5857 </object>5858 <int key="connectionID">2810</int>5859 </object>5860 <object class="IBConnectionRecord">5861 <object class="IBOutletConnection" key="connection">5862 5746 <string key="label">delegate</string> 5863 5747 <reference key="source" ref="256186660"/> … … 6331 6215 <reference ref="403739499"/> 6332 6216 <reference ref="87647552"/> 6333 <reference ref="382627929"/>6334 6217 </object> 6335 6218 <reference key="parent" ref="405103408"/> … … 7499 7382 <reference ref="508355629"/> 7500 7383 <reference ref="387610893"/> 7501 <reference ref="914996384"/>7502 <reference ref="679494460"/>7503 7384 </object> 7504 7385 <reference key="parent" ref="52096491"/> … … 7547 7428 <bool key="EncodedWithXMLCoder">YES</bool> 7548 7429 <reference ref="9693266"/> 7549 </object>7550 <reference key="parent" ref="492482618"/>7551 </object>7552 <object class="IBObjectRecord">7553 <int key="objectID">2731</int>7554 <reference key="object" ref="914996384"/>7555 <object class="NSMutableArray" key="children">7556 <bool key="EncodedWithXMLCoder">YES</bool>7557 <reference ref="1054398883"/>7558 </object>7559 <reference key="parent" ref="492482618"/>7560 </object>7561 <object class="IBObjectRecord">7562 <int key="objectID">2743</int>7563 <reference key="object" ref="679494460"/>7564 <object class="NSMutableArray" key="children">7565 <bool key="EncodedWithXMLCoder">YES</bool>7566 <reference ref="50727597"/>7567 7430 </object> 7568 7431 <reference key="parent" ref="492482618"/> … … 8008 7871 </object> 8009 7872 <object class="IBObjectRecord"> 8010 <int key="objectID">3055</int>8011 <reference key="object" ref="1054398883"/>8012 <reference key="parent" ref="914996384"/>8013 </object>8014 <object class="IBObjectRecord">8015 <int key="objectID">3056</int>8016 <reference key="object" ref="50727597"/>8017 <reference key="parent" ref="679494460"/>8018 </object>8019 <object class="IBObjectRecord">8020 7873 <int key="objectID">3057</int> 8021 7874 <reference key="object" ref="186597542"/> … … 8322 8175 <reference key="object" ref="765429693"/> 8323 8176 <reference key="parent" ref="455126894"/> 8324 </object>8325 <object class="IBObjectRecord">8326 <int key="objectID">2785</int>8327 <reference key="object" ref="382627929"/>8328 <reference key="parent" ref="303120456"/>8329 8177 </object> 8330 8178 <object class="IBObjectRecord"> … … 8772 8620 <string>2564.IBPluginDependency</string> 8773 8621 <string>2564.ImportedFromIB2</string> 8774 <string>2681.CustomClassName</string>8775 8622 <string>2681.IBPluginDependency</string> 8776 8623 <string>2681.ImportedFromIB2</string> 8624 <string>2683.IBEditorWindowLastContentRect</string> 8777 8625 <string>2683.IBPluginDependency</string> 8778 8626 <string>2683.ImportedFromIB2</string> … … 8787 8635 <string>2700.IBPluginDependency</string> 8788 8636 <string>2700.ImportedFromIB2</string> 8789 <string>2731.CustomClassName</string>8790 <string>2731.IBPluginDependency</string>8791 <string>2731.ImportedFromIB2</string>8792 <string>2743.IBPluginDependency</string>8793 <string>2743.ImportedFromIB2</string>8794 <string>2785.IBPluginDependency</string>8795 <string>2785.ImportedFromIB2</string>8796 8637 <string>2839.IBPluginDependency</string> 8797 8638 <string>2839.ImportedFromIB2</string> … … 8855 8696 <string>3053.IBPluginDependency</string> 8856 8697 <string>3054.IBPluginDependency</string> 8857 <string>3055.IBPluginDependency</string>8858 <string>3056.IBPluginDependency</string>8859 8698 <string>3057.IBPluginDependency</string> 8860 8699 <string>3058.IBPluginDependency</string> … … 9055 8894 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9056 8895 <reference ref="9"/> 9057 <string>{{ 0, 799}, {400, 21}}</string>8896 <string>{{208, 808}, {400, 21}}</string> 9058 8897 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9059 8898 <reference ref="9"/> … … 9115 8954 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9116 8955 <reference ref="9"/> 9117 <string>{{ 0, 797}, {457, 23}}</string>8956 <string>{{382, 705}, {457, 23}}</string> 9118 8957 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9119 8958 <reference ref="9"/> … … 9323 9162 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9324 9163 <reference ref="9"/> 9325 <string>{{ 52, 624}, {468, 196}}</string>9326 <string>{{ 52, 624}, {468, 196}}</string>9164 <string>{{350, 492}, {468, 196}}</string> 9165 <string>{{350, 492}, {468, 196}}</string> 9327 9166 <reference ref="9"/> 9328 9167 <string>{{52, 684}, {468, 196}}</string> … … 9383 9222 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9384 9223 <reference ref="9"/> 9385 <string>ActionPopUpButton</string> 9386 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9387 <reference ref="9"/> 9388 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9389 <reference ref="9"/> 9390 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9391 <reference ref="9"/> 9392 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9393 <reference ref="9"/> 9394 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9395 <reference ref="9"/> 9396 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9397 <reference ref="9"/> 9398 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9399 <reference ref="9"/> 9400 <string>MenuLabel</string> 9224 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9225 <reference ref="9"/> 9226 <string>{{346, 449}, {108, 63}}</string> 9227 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9228 <reference ref="9"/> 9229 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9230 <reference ref="9"/> 9231 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9232 <reference ref="9"/> 9401 9233 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9402 9234 <reference ref="9"/> … … 9458 9290 <reference ref="9"/> 9459 9291 <string>{{396, 658}, {236, 243}}</string> 9460 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>9461 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>9462 9292 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 9463 9293 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> … … 9595 9425 <object class="NSMutableArray" key="referencedPartialClassDescriptions"> 9596 9426 <bool key="EncodedWithXMLCoder">YES</bool> 9597 <object class="IBPartialClassDescription">9598 <string key="className">ActionPopUpButton</string>9599 <string key="superclassName">NSPopUpButton</string>9600 <object class="IBClassDescriptionSource" key="sourceIdentifier">9601 <string key="majorKey">IBProjectSource</string>9602 <string key="minorKey">macosx/ActionPopUpButton.h</string>9603 </object>9604 </object>9605 <object class="IBPartialClassDescription">9606 <string key="className">ActionPopUpButton</string>9607 <string key="superclassName">NSPopUpButton</string>9608 <object class="IBClassDescriptionSource" key="sourceIdentifier">9609 <string key="majorKey">IBUserSource</string>9610 <string key="minorKey"/>9611 </object>9612 </object>9613 9427 <object class="IBPartialClassDescription"> 9614 9428 <string key="className">Controller</string> … … 9739 9553 <string>fActionButton</string> 9740 9554 <string>fActiveFilterButton</string> 9741 <string>fBottomTigerLine</string>9742 9555 <string>fCheckRatioItem</string> 9743 9556 <string>fDockMenu</string> … … 9765 9578 <string>fStatusBar</string> 9766 9579 <string>fStatusButton</string> 9767 <string>fStatusTigerField</string>9768 <string>fStatusTigerImageView</string>9769 9580 <string>fTableView</string> 9770 9581 <string>fTotalDLField</string> … … 9784 9595 <string>NSButton</string> 9785 9596 <string>FilterButton</string> 9786 <string>NSBox</string>9787 9597 <string>NSMenuItem</string> 9788 9598 <string>NSMenu</string> … … 9810 9620 <string>StatusBarView</string> 9811 9621 <string>NSButton</string> 9812 <string>MenuLabel</string>9813 <string>NSImageView</string>9814 9622 <string>TorrentTableView</string> 9815 9623 <string>NSTextField</string> … … 9922 9730 </object> 9923 9731 <object class="IBPartialClassDescription"> 9924 <string key="className">MenuLabel</string>9925 <string key="superclassName">NSTextField</string>9926 <object class="IBClassDescriptionSource" key="sourceIdentifier">9927 <string key="majorKey">IBProjectSource</string>9928 <string key="minorKey">macosx/MenuLabel.h</string>9929 </object>9930 </object>9931 <object class="IBPartialClassDescription">9932 <string key="className">MenuLabel</string>9933 <string key="superclassName">NSTextField</string>9934 <object class="IBClassDescriptionSource" key="sourceIdentifier">9935 <string key="majorKey">IBUserSource</string>9936 <string key="minorKey"/>9937 </object>9938 </object>9939 <object class="IBPartialClassDescription">9940 9732 <string key="className">NSApplication</string> 9941 9733 <object class="IBClassDescriptionSource" key="sourceIdentifier"> -
trunk/macosx/en.lproj/PrefsWindow.xib
r7371 r7508 3 3 <data> 4 4 <int key="IBDocument.SystemTarget">1050</int> 5 <string key="IBDocument.SystemVersion">9 F33</string>5 <string key="IBDocument.SystemVersion">9G55</string> 6 6 <string key="IBDocument.InterfaceBuilderVersion">677</string> 7 <string key="IBDocument.AppKitVersion">949. 34</string>8 <string key="IBDocument.HIToolboxVersion">35 2.00</string>7 <string key="IBDocument.AppKitVersion">949.43</string> 8 <string key="IBDocument.HIToolboxVersion">353.00</string> 9 9 <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> 10 10 <bool key="EncodedWithXMLCoder">YES</bool> 11 <integer value=" 66"/>11 <integer value="1760"/> 12 12 </object> 13 13 <object class="NSArray" key="IBDocument.PluginDependencies"> … … 1527 1527 </object> 1528 1528 <object class="NSCustomView" id="284666863"> 1529 < nilkey="NSNextResponder"/>1529 <reference key="NSNextResponder"/> 1530 1530 <int key="NSvFlags">256</int> 1531 1531 <object class="NSMutableArray" key="NSSubviews"> … … 3282 3282 </object> 3283 3283 </object> 3284 <object class="NS CustomView" id="391284286">3284 <object class="NSButton" id="31476212"> 3285 3285 <reference key="NSNextResponder" ref="284666863"/> 3286 <int key="NSvFlags">292</int> 3287 <object class="NSMutableArray" key="NSSubviews"> 3288 <bool key="EncodedWithXMLCoder">YES</bool> 3289 <object class="NSButton" id="31476212"> 3290 <reference key="NSNextResponder" ref="391284286"/> 3291 <int key="NSvFlags">268</int> 3292 <string key="NSFrame">{{2, 54}, {323, 18}}</string> 3293 <reference key="NSSuperview" ref="391284286"/> 3294 <bool key="NSEnabled">YES</bool> 3295 <object class="NSButtonCell" key="NSCell" id="23936638"> 3296 <int key="NSCellFlags">-2080244224</int> 3297 <int key="NSCellFlags2">0</int> 3298 <string key="NSContents">Assign group to new transfers based on criteria</string> 3299 <reference key="NSSupport" ref="86725571"/> 3300 <reference key="NSControlView" ref="31476212"/> 3301 <int key="NSButtonFlags">1211912703</int> 3302 <int key="NSButtonFlags2">130</int> 3303 <reference key="NSNormalImage" ref="1001726176"/> 3304 <reference key="NSAlternateImage" ref="764913887"/> 3305 <string key="NSAlternateContents"/> 3306 <string key="NSKeyEquivalent"/> 3307 <int key="NSPeriodicDelay">200</int> 3308 <int key="NSPeriodicInterval">25</int> 3309 </object> 3310 </object> 3311 <object class="NSButton" id="233310108"> 3312 <reference key="NSNextResponder" ref="391284286"/> 3313 <int key="NSvFlags">268</int> 3314 <string key="NSFrame">{{233, 16}, {96, 32}}</string> 3315 <reference key="NSSuperview" ref="391284286"/> 3316 <bool key="NSEnabled">YES</bool> 3317 <object class="NSButtonCell" key="NSCell" id="565625533"> 3318 <int key="NSCellFlags">67239424</int> 3319 <int key="NSCellFlags2">134217728</int> 3320 <string type="base64-UTF8" key="NSContents">RWRpdOKApg</string> 3321 <reference key="NSSupport" ref="86725571"/> 3322 <reference key="NSControlView" ref="233310108"/> 3323 <int key="NSButtonFlags">-2038284033</int> 3324 <int key="NSButtonFlags2">129</int> 3325 <string key="NSAlternateContents"/> 3326 <string key="NSKeyEquivalent"/> 3327 <int key="NSPeriodicDelay">200</int> 3328 <int key="NSPeriodicInterval">25</int> 3329 </object> 3330 </object> 3331 <object class="NSTextField" id="360885126"> 3332 <reference key="NSNextResponder" ref="391284286"/> 3333 <int key="NSvFlags">256</int> 3334 <string key="NSFrame">{{20, 20}, {214, 28}}</string> 3335 <reference key="NSSuperview" ref="391284286"/> 3336 <bool key="NSEnabled">YES</bool> 3337 <object class="NSTextFieldCell" key="NSCell" id="660134747"> 3338 <int key="NSCellFlags">67239424</int> 3339 <int key="NSCellFlags2">272760832</int> 3340 <string key="NSContents">Transfers will be assigned to the first group where all criteria is met</string> 3341 <reference key="NSSupport" ref="26"/> 3342 <reference key="NSControlView" ref="360885126"/> 3343 <reference key="NSBackgroundColor" ref="977951849"/> 3344 <reference key="NSTextColor" ref="540507142"/> 3345 </object> 3346 </object> 3347 </object> 3348 <string key="NSFrame">{{167, 29}, {348, 90}}</string> 3286 <int key="NSvFlags">268</int> 3287 <string key="NSFrame">{{169, 85}, {323, 18}}</string> 3349 3288 <reference key="NSSuperview" ref="284666863"/> 3350 <string key="NSClassName">NSView</string> 3289 <bool key="NSEnabled">YES</bool> 3290 <object class="NSButtonCell" key="NSCell" id="23936638"> 3291 <int key="NSCellFlags">-2080244224</int> 3292 <int key="NSCellFlags2">0</int> 3293 <string key="NSContents">Assign group to new transfers based on criteria</string> 3294 <reference key="NSSupport" ref="86725571"/> 3295 <reference key="NSControlView" ref="31476212"/> 3296 <int key="NSButtonFlags">1211912703</int> 3297 <int key="NSButtonFlags2">130</int> 3298 <reference key="NSNormalImage" ref="1001726176"/> 3299 <reference key="NSAlternateImage" ref="764913887"/> 3300 <string key="NSAlternateContents"/> 3301 <string key="NSKeyEquivalent"/> 3302 <int key="NSPeriodicDelay">200</int> 3303 <int key="NSPeriodicInterval">25</int> 3304 </object> 3305 </object> 3306 <object class="NSButton" id="233310108"> 3307 <reference key="NSNextResponder" ref="284666863"/> 3308 <int key="NSvFlags">268</int> 3309 <string key="NSFrame">{{400, 47}, {96, 32}}</string> 3310 <reference key="NSSuperview" ref="284666863"/> 3311 <bool key="NSEnabled">YES</bool> 3312 <object class="NSButtonCell" key="NSCell" id="565625533"> 3313 <int key="NSCellFlags">67239424</int> 3314 <int key="NSCellFlags2">134217728</int> 3315 <string type="base64-UTF8" key="NSContents">RWRpdOKApg</string> 3316 <reference key="NSSupport" ref="86725571"/> 3317 <reference key="NSControlView" ref="233310108"/> 3318 <int key="NSButtonFlags">-2038284033</int> 3319 <int key="NSButtonFlags2">129</int> 3320 <string key="NSAlternateContents"/> 3321 <string key="NSKeyEquivalent"/> 3322 <int key="NSPeriodicDelay">200</int> 3323 <int key="NSPeriodicInterval">25</int> 3324 </object> 3325 </object> 3326 <object class="NSTextField" id="360885126"> 3327 <reference key="NSNextResponder" ref="284666863"/> 3328 <int key="NSvFlags">256</int> 3329 <string key="NSFrame">{{187, 51}, {214, 28}}</string> 3330 <reference key="NSSuperview" ref="284666863"/> 3331 <bool key="NSEnabled">YES</bool> 3332 <object class="NSTextFieldCell" key="NSCell" id="660134747"> 3333 <int key="NSCellFlags">67239424</int> 3334 <int key="NSCellFlags2">272760832</int> 3335 <string key="NSContents">Transfers will be assigned to the first group where all criteria is met</string> 3336 <reference key="NSSupport" ref="26"/> 3337 <reference key="NSControlView" ref="360885126"/> 3338 <reference key="NSBackgroundColor" ref="977951849"/> 3339 <reference key="NSTextColor" ref="540507142"/> 3340 </object> 3351 3341 </object> 3352 3342 </object> 3353 3343 <string key="NSFrameSize">{535, 240}</string> 3344 <reference key="NSSuperview"/> 3354 3345 <string key="NSClassName">NSView</string> 3355 3346 </object> … … 4407 4398 </object> 4408 4399 <object class="NSCustomView" id="204700639"> 4409 < referencekey="NSNextResponder"/>4400 <nil key="NSNextResponder"/> 4410 4401 <int key="NSvFlags">256</int> 4411 4402 <object class="NSMutableArray" key="NSSubviews"> … … 5038 5029 </object> 5039 5030 <string key="NSFrameSize">{535, 345}</string> 5040 <reference key="NSSuperview"/>5041 5031 <string key="NSClassName">NSView</string> 5042 5032 <string key="NSExtension">NSResponder</string> … … 8678 8668 </object> 8679 8669 <object class="IBConnectionRecord"> 8680 <object class="IBOutletConnection" key="connection">8681 <string key="label">fGroupRulesPrefsContainer</string>8682 <reference key="source" ref="981493640"/>8683 <reference key="destination" ref="391284286"/>8684 </object>8685 <int key="connectionID">1888</int>8686 </object>8687 <object class="IBConnectionRecord">8688 8670 <object class="IBBindingConnection" key="connection"> 8689 8671 <string key="label">value: values.RandomPort</string> … … 11062 11044 <reference ref="415414007"/> 11063 11045 <reference ref="25528693"/> 11064 <reference ref="391284286"/> 11046 <reference ref="31476212"/> 11047 <reference ref="233310108"/> 11048 <reference ref="360885126"/> 11065 11049 </object> 11066 11050 <reference key="parent" ref="37013934"/> … … 11265 11249 </object> 11266 11250 <object class="IBObjectRecord"> 11267 <int key="objectID">1887</int> 11268 <reference key="object" ref="391284286"/> 11269 <object class="NSMutableArray" key="children"> 11270 <bool key="EncodedWithXMLCoder">YES</bool> 11271 <reference ref="31476212"/> 11272 <reference ref="233310108"/> 11273 <reference ref="360885126"/> 11274 </object> 11275 <reference key="parent" ref="284666863"/> 11251 <int key="objectID">1889</int> 11252 <reference key="object" ref="200017199"/> 11253 <object class="NSMutableArray" key="children"> 11254 <bool key="EncodedWithXMLCoder">YES</bool> 11255 <reference ref="847795095"/> 11256 </object> 11257 <reference key="parent" ref="204700639"/> 11258 </object> 11259 <object class="IBObjectRecord"> 11260 <int key="objectID">1890</int> 11261 <reference key="object" ref="847795095"/> 11262 <reference key="parent" ref="200017199"/> 11263 </object> 11264 <object class="IBObjectRecord"> 11265 <int key="objectID">1891</int> 11266 <reference key="object" ref="994561291"/> 11267 <object class="NSMutableArray" key="children"> 11268 <bool key="EncodedWithXMLCoder">YES</bool> 11269 <reference ref="681368311"/> 11270 </object> 11271 <reference key="parent" ref="204700639"/> 11272 </object> 11273 <object class="IBObjectRecord"> 11274 <int key="objectID">1892</int> 11275 <reference key="object" ref="681368311"/> 11276 <reference key="parent" ref="994561291"/> 11276 11277 </object> 11277 11278 <object class="IBObjectRecord"> … … 11282 11283 <reference ref="23936638"/> 11283 11284 </object> 11284 <reference key="parent" ref=" 391284286"/>11285 <reference key="parent" ref="284666863"/> 11285 11286 </object> 11286 11287 <object class="IBObjectRecord"> … … 11296 11297 <reference ref="565625533"/> 11297 11298 </object> 11298 <reference key="parent" ref=" 391284286"/>11299 <reference key="parent" ref="284666863"/> 11299 11300 </object> 11300 11301 <object class="IBObjectRecord"> … … 11310 11311 <reference ref="660134747"/> 11311 11312 </object> 11312 <reference key="parent" ref=" 391284286"/>11313 <reference key="parent" ref="284666863"/> 11313 11314 </object> 11314 11315 <object class="IBObjectRecord"> … … 11316 11317 <reference key="object" ref="660134747"/> 11317 11318 <reference key="parent" ref="360885126"/> 11318 </object>11319 <object class="IBObjectRecord">11320 <int key="objectID">1889</int>11321 <reference key="object" ref="200017199"/>11322 <object class="NSMutableArray" key="children">11323 <bool key="EncodedWithXMLCoder">YES</bool>11324 <reference ref="847795095"/>11325 </object>11326 <reference key="parent" ref="204700639"/>11327 </object>11328 <object class="IBObjectRecord">11329 <int key="objectID">1890</int>11330 <reference key="object" ref="847795095"/>11331 <reference key="parent" ref="200017199"/>11332 </object>11333 <object class="IBObjectRecord">11334 <int key="objectID">1891</int>11335 <reference key="object" ref="994561291"/>11336 <object class="NSMutableArray" key="children">11337 <bool key="EncodedWithXMLCoder">YES</bool>11338 <reference ref="681368311"/>11339 </object>11340 <reference key="parent" ref="204700639"/>11341 </object>11342 <object class="IBObjectRecord">11343 <int key="objectID">1892</int>11344 <reference key="object" ref="681368311"/>11345 <reference key="parent" ref="994561291"/>11346 11319 </object> 11347 11320 </object> … … 11701 11674 <string>1834.ImportedFromIB2</string> 11702 11675 <string>1835.IBPluginDependency</string> 11703 <string>1887.IBPluginDependency</string>11704 11676 <string>1889.IBPluginDependency</string> 11705 11677 <string>1889.ImportedFromIB2</string> … … 12261 12233 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 12262 12234 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> 12263 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>12264 12235 <real value="1.000000e+00"/> 12265 12236 <string>com.apple.InterfaceBuilder.CocoaPlugin</string> … … 12554 12525 <string>fGroupRulesSheetWindow</string> 12555 12526 <string>fRuleEditor</string> 12556 <string>fRulesAllAnyButton</string>12557 <string>fRulesSheetCancelButton</string>12558 <string>fRulesSheetDescriptionField</string>12559 <string>fRulesSheetOKButton</string>12560 12527 <string>fSelectedColorNameField</string> 12561 12528 <string>fSelectedColorView</string> … … 12571 12538 <string>NSView</string> 12572 12539 <string>NSWindow</string> 12573 <string>NSRuleEditor</string> 12574 <string>NSPopUpButton</string> 12575 <string>NSButton</string> 12576 <string>NSTextField</string> 12577 <string>NSButton</string> 12540 <string>NSPredicateEditor</string> 12578 12541 <string>NSTextField</string> 12579 12542 <string>NSColorWell</string> … … 12607 12570 <string key="majorKey">IBUserSource</string> 12608 12571 <string key="minorKey"/> 12609 </object>12610 </object>12611 <object class="IBPartialClassDescription">12612 <string key="className">NSMenu</string>12613 <object class="IBClassDescriptionSource" key="sourceIdentifier">12614 <string key="majorKey">IBProjectSource</string>12615 <string key="minorKey">macosx/NSMenuAdditions.h</string>12616 12572 </object> 12617 12573 </object>
Note: See TracChangeset
for help on using the changeset viewer.