Commit Graph

42 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
Mitch Livingston f041f229bf
Load the tracker icon on the main thread (#1086)
* Load the tracker icon on the main thread

* Call loadTrackerIcon: directly
2020-01-03 00:12:59 -05:00
Mitchell Livingston d2b3010210 Dark mode support
This is the first pass. A bit more work is needed.
2018-12-21 16:39:47 -05: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 845dfe6017 Transition to ARC 2017-07-29 23:14:22 +07:00
Dmitry Serov 95ae0688eb NSDictionary subscripting 2017-07-08 21:38:47 +07:00
Dmitry Serov 40a7b8879c NSArray subscripting 2017-07-08 16:16:01 +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 9c8395d109 silence several warnings related to printing ints in strings 2012-08-13 00:52:04 +00:00
Mitchell Livingston b830e8cba2 #4749 When accessing images using imageNamed:, don't include the .png. This fixes the app not using the @2x images in HiDPI mode. 2012-06-10 02:35:58 +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 34d9663139 replace NSAutoreleasePool objects with @autoreleasepool blocks 2012-02-11 05:13:46 +00:00
Mitchell Livingston 8ca8c76799 bump Mac copyright to 2012 2012-01-14 17:12:04 +00:00
Mitchell Livingston 995d754baf Silence some new warnings with LLVM 3.0/Xcode 4.2 2011-10-18 02:30:22 +00:00
Mitchell Livingston 0808bdd2fe We now require Mac OS X 10.6 or later. Make that change and all the nice little adjustments that go with it. 2011-10-06 00:30:40 +00:00
Mitchell Livingston 346fd8df26 bump to 2.30 beta 3 2011-04-17 20:01:46 +00:00
Mitchell Livingston b4cdc74706 catch invalid addresses when loading tracker favicons 2011-04-07 23:29:05 +00:00
Mitchell Livingston 25ee42d68d update the copyright years in the Mac code to 2011 2011-01-01 20:42:14 +00:00
Mitchell Livingston 63d3012005 refresh the tracker cell right when we get the favicon 2010-04-24 19:39:25 +00:00
Charles Kerr 044823baf4 (trunk macosx) maybe fix the utils.h breakage? 2010-04-23 16:59:14 +00:00
Mitchell Livingston 0fa3285a88 prefer favicon.png over favicon.ico 2010-04-13 00:20:19 +00:00
Mitchell Livingston e115a0a2ad #3133 Inspector > Trackers: Look for favicon.png 2010-04-12 02:55:50 +00:00
Mitchell Livingston 205b21dca3 add a convenience function for determining if an address is an IP address, and when picking a favicon in the Mac UI's tracker tab, use the full IP address when applicable 2010-02-01 23:52:46 +00:00
Mitchell Livingston 54c9331258 #2827 Display tracker favicon at 16 x 16px 2010-01-31 22:33:00 +00:00
Mitchell Livingston 1fec2fb2d0 happy new year! 2010-01-01 21:12:04 +00:00
Mitchell Livingston cee48f8c07 might as well dump a bunch of small changes/optimizations I have sitting locally 2009-12-28 20:05:33 +00:00
Mitchell Livingston 3695344cfd fix favicons in the tracker tab 2009-12-13 22:47:25 +00:00
Mitchell Livingston a88683d650 set the color for table cells only when actually drawing (and only once each time the draw method is alled) 2009-09-28 17:42:24 +00:00
Mitchell Livingston 9f04b0846e a little cleanup to the peer count code 2009-09-28 15:59:17 +00:00
Mitchell Livingston bc0411ca50 right-align the peer counts in the tracker cells 2009-09-28 15:49:02 +00:00
Mitchell Livingston 79b5c3e596 show N/A for peer counts when there hasn't been a scrape/announce yet 2009-09-28 15:16:23 +00:00
Mitchell Livingston d7c6e9c7a1 add tracker stats to the tracker cell 2009-09-28 14:42:00 +00:00
Mitchell Livingston efe4c51873 don't use a NSCache until we go 10.6-only 2009-09-28 14:13:20 +00:00
Mitchell Livingston 6f8400b3b2 whoops 2009-09-28 13:53:59 +00:00
Mitchell Livingston e62028bcb4 on 10.5 don't even acknowledge the NSCache object 2009-09-28 13:53:17 +00:00
Mitchell Livingston 25e05e2cd1 remove an NSLog() that snuck in 2009-09-28 04:36:26 +00:00
Mitchell Livingston fbecc713a6 fix favicons 2009-09-28 03:42:35 +00:00
Mitchell Livingston a9101bb1c2 first go at redoing the tracker inspector tab (some functionality is still missing) 2009-09-28 01:57:35 +00:00