Commit Graph

86 Commits

Author SHA1 Message Date
Mike Gelfand b7ba261359
Port macOS client to C++ (#1830)
* Rename all .m (Obj-C) files to .mm (Obj-C++)

* Fix build in Obj-C++ mode

* Fix Xcode build
2021-09-24 07:56:57 -05:00
Mike Gelfand db3d40d0ed Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
Dmitry Serov af3a4d4557
Modern Objective-C syntax (#509)
* Update enabled complier warnings

* Convert to Modern Objective-C syntax using Xcode's tool

* Convert to modern objc syntax manually, fix some PR issues

* Remove unnecessary parentheses

* Use property syntax for all custom properties

* Use property syntax for all system properties

* Fix erroneously autoreleased values

* Revert VDKQueue to old objc syntax

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
Co-authored-by: Mitch Livingston <livings124@mac.com>
2021-08-07 10:27:56 +03:00
Mike Gelfand 8863e88570 Fix build with Xcode 10
For some reason, Mac client is the only project that references
libtransmission files as if they were a part of its own project, and
inconsistently so. Make the include/import style uniform an in line with
other projects.

Adjust Mac client include directory settings a bit along the way.
2018-09-30 13:37:30 +03:00
Dmitry Serov 18e33c5cdb Remove leftover dealloc empty lines, nullify StatsWindowController instance on close 2017-08-01 17:57:27 +07:00
Dmitry Serov 845dfe6017 Transition to ARC 2017-07-29 23:14:22 +07:00
Mike Gelfand 4160743738 Convert tabs to spaces, remove trailing whitespace (Mac client) 2017-01-24 20:53:16 +03:00
Mike Gelfand 2248d3670f Get rid of $Id$ SVN keywords in source files 2016-09-02 23:10:15 +03:00
Mitchell Livingston 90b042f789 the PiecesView will use target/action instead of notification center for mouse-down events 2013-03-12 02:56:35 +00:00
Mitchell Livingston 2406572104 reverse r13248-r13250, since ARC doesn't support 32-bit. 2012-03-13 02:52:11 +00:00
Mitchell Livingston 11f57ccb18 #4822 Enable Automatic Reference Counting 2012-03-10 03:38:58 +00:00
Mitchell Livingston 8ca8c76799 bump Mac copyright to 2012 2012-01-14 17:12:04 +00:00
Mitchell Livingston 5b3c1c46d7 cleaner fix for #4066 2011-03-05 03:19:26 +00:00
Mitchell Livingston fecc3fedae (trunk) #4066 Fix the pieces view for magnet links 2011-02-26 15:13:35 +00:00
Mitchell Livingston 25ee42d68d update the copyright years in the Mac code to 2011 2011-01-01 20:42:14 +00:00
Charles Kerr 044823baf4 (trunk macosx) maybe fix the utils.h breakage? 2010-04-23 16:59:14 +00:00
Mitchell Livingston f3f09f7488 only toggle the pieces view when a torrent is selected 2010-04-06 01:44:38 +00:00
Mitchell Livingston 909b710f04 restore ability to toggle pieces view by clicking on it 2010-04-06 01:41:16 +00:00
Mitchell Livingston d5f4c15fb8 Refactor the info window, so that each view is in a separate xib and view controller. This should make future localizations simpler and the code more modular/readable. 2010-03-06 23:12:30 +00:00
Mitchell Livingston 1fec2fb2d0 happy new year! 2010-01-01 21:12:04 +00:00
Mitchell Livingston 23230f519e make the nested for-loop in PiecesView into a single for-loop 2009-10-18 02:23:10 +00:00
Mitchell Livingston a193ba134c trivial adjustments to pieceview: use an enum instead of #defines; calculate the current piece index being drawn within each pass of the loop instead of incrementing 2009-10-18 02:12:43 +00:00
Mitchell Livingston c0c6a4f6b7 don't store a copy of the pieces view's background - regenerate it when needed instead 2009-10-18 01:54:13 +00:00
Mitchell Livingston 55b098b6d9 remove unneeded group column resize code 2009-09-18 02:18:22 +00:00
Mitchell Livingston 110bc7d50b use NSRectFillListWithColors on the pieces grid 2009-09-17 23:33:50 +00:00
Mitchell Livingston 9c886b5d3e remove unnecessary alloca 2009-09-17 04:52:17 +00:00
Mitchell Livingston 055afd2d4d update the Mac code's copyright dates 2009-01-10 23:37:37 +00:00
Mitchell Livingston 333e226a3c so long Tiger support 2008-12-26 05:57:51 +00:00
Mitchell Livingston c9e5427ed6 now that the types have been converted, revert some that shouldn't have been 2008-11-02 14:04:57 +00:00
Mitchell Livingston afb9d97f55 update NEWS; trivial changes 2008-11-01 15:22:32 +00:00
Mitchell Livingston 74f9ce520b for the "torrent file" in the inspector, don't give information about the internal torrent file 2008-10-30 01:37:46 +00:00
Mitchell Livingston 6bc269d2bc more trivial type changes 2008-10-28 00:08:49 +00:00
Mitchell Livingston 46f80eb754 eliminate all "warning: implicit declaration of function..." messages when compiling 2008-10-25 20:54:09 +00:00
Mitchell Livingston 9d5430a381 move a lot of loop counters into the loops' scopes; trivial changes 2008-10-12 21:38:13 +00:00
Mitchell Livingston 9d5affb0b7 some cleaning 2008-06-17 17:17:15 +00:00
Mitchell Livingston 5b80678dd0 rearrange proxy prefs, and validate the proxy address value on entry 2008-06-10 22:54:30 +00:00
Mitchell Livingston 5158d6a38e only lock focus and redraw the pieces view if it has been updated 2008-06-10 21:46:34 +00:00
Mitchell Livingston 6a0038f146 combine some of the code from the last commit 2008-06-10 21:33:13 +00:00
Mitchell Livingston a896093804 remember the previous color of the pieces view as much as possible to avoid excessive drawing 2008-06-10 21:13:33 +00:00
Mitchell Livingston 658881a93b some cleanup of the pieces view code 2008-06-10 20:15:00 +00:00
Mitchell Livingston 493d0fa474 the pieces bar and pieces view now show shades of blue/green based on progress/availability instead of preset "levels" of color - in other words, it mixes white with either blue or green where the amount of color is the exact percentage of the piece that has been downloaded 2008-06-10 19:56:53 +00:00
Mitchell Livingston 9207316488 make the pieces view a bit more efficient in terms of not storing values when it's not shown 2008-06-09 23:23:55 +00:00
Mitchell Livingston dd715ccaf6 accidently committed some log statements 2008-06-09 22:45:31 +00:00
Mitchell Livingston 41ff271f20 more adjustments to the pieces view 2008-06-09 22:44:08 +00:00
Mitchell Livingston 09db9d7f0c some maintenance on the pieces view 2008-06-09 21:20:01 +00:00
Mitchell Livingston f80bd47056 update copyright info for 2008 2008-01-02 16:55:05 +00:00
Mitchell Livingston 6fc01cb59c set some menu titles without regard to what it is already set to (this should in theory be faster and looks cleaner) 2007-10-21 13:53:29 +00:00
Mitchell Livingston b62fb6a7c1 trivial code cleanup 2007-10-19 01:24:42 +00:00
Mitchell Livingston 045c31018b remove unused variables 2007-10-12 21:36:01 +00:00
Mitchell Livingston 844341faef this better work 2007-09-16 01:02:06 +00:00