Commit Graph

42 Commits

Author SHA1 Message Date
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
Mitchell Livingston daf6a9d307 Proper dark mode for group rules sheet 2018-12-21 17:14:44 -05:00
Dmitry Serov 845dfe6017 Transition to ARC 2017-07-29 23:14:22 +07:00
Dmitry Serov 40a7b8879c NSArray subscripting 2017-07-08 16:16:01 +07:00
Dmitry Serov b743b64262 NSArray init literals 2017-07-08 15:23:05 +07:00
Mike Gelfand fa504fb27f Bump Mac client deployment target to 10.9, fix deprecation errors 2017-02-05 18:41:47 +03:00
Mike Gelfand 4160743738 Convert tabs to spaces, remove trailing whitespace (Mac client) 2017-01-24 20:53:16 +03:00
Mike Gelfand ee0f7686b5 Fix some warnings revealed by CMake configuration compiler flags 2017-01-11 23:43:56 +03:00
Mike Gelfand 2248d3670f Get rid of $Id$ SVN keywords in source files 2016-09-02 23:10:15 +03:00
Mike Gelfand 109b9ae329 Prevent crash during group rules removal in some cases (OS X)
The crash seems to be caused by animation performed by the rules list and
the window in parallel. This commit disables window resize animation until
a better solution is devised.

Rules list height is now also limited and scrollbar is shown if needed.
2016-03-02 07:55:37 +00:00
Mike Gelfand 147ae097f4 #6042: Remove dead code now that we build for OS X 10.7+ (patch by mattrajca)
In addition to the patch,
  * remove unused global actions menu (popover is used instead)
  * remove *Lion class macros, use NSPopover and NSDataDetector directly
2016-01-06 11:05:37 +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 16e70167d0 update moveGroupAtRow:toRow to use NSMutableArrayAdditions's moveObjectAtIndex:toIndex: 2012-01-04 00:06:30 +00:00
Mitchell Livingston d024e6bf39 #4694 Don't call reloadData on the main table on each updateUI call (and each sort) if the order hasn't changed; instead call setNeedsDisplay:. Don't call reloadData when toggling the main window per-torrent status string 2012-01-03 01:53:53 +00:00
Mitchell Livingston 575a57525c don't create a NSColorPanel just to close it 2012-01-02 21:47:14 +00:00
Mitchell Livingston ff5510a3fc #4693 (Lion) animate adding/removing/dragging rows in the group pref table 2012-01-02 19:05:21 +00:00
Mitchell Livingston 30f7fae5a5 eliminate all warnings by switching NSOpenPanel/NSSavePanels to use completion handler blocks 2011-12-11 22:31:01 +00:00
Mitchell Livingston bc5b4be310 remove most instances of deprecated filename and filenames methods 2011-10-06 02:16:19 +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 6b84271314 when removing the bottom group, select the group above it instead of the first group 2010-04-10 15:48:09 +00:00
Mitchell Livingston 1fec2fb2d0 happy new year! 2010-01-01 21:12:04 +00:00
Mitchell Livingston c14571561d miscellany 2009-12-20 21:02:58 +00:00
Mitchell Livingston 274f6b2707 random cleanup 2009-12-19 19:17:09 +00:00
Mitchell Livingston a942125d2f #2680 "Group Name" cleared after choosing "Custom location" 2009-12-16 03:19:09 +00:00
Mitchell Livingston 045b7d92fb don't use setFlipped: on the file node's image on 10.6 2009-10-18 03:02:10 +00:00
Mitchell Livingston ace6821574 remove a couple of 10.6 deprecated methods 2009-08-28 23:40:11 +00:00
Mitchell Livingston 055afd2d4d update the Mac code's copyright dates 2009-01-10 23:37:37 +00:00
Mitchell Livingston 28ce3a64e8 #1661 show group rules for the proper group 2009-01-06 01:21:02 +00:00
Mitchell Livingston 333e226a3c so long Tiger support 2008-12-26 05:57:51 +00:00
Mitchell Livingston a688b957b0 get rid of unnecessary localizable strings 2008-12-24 22:17:58 +00:00
Mitchell Livingston 111ce452d7 set missing properties 2008-12-24 17:41:45 +00:00
Mitchell Livingston 3368de5d44 add an all/any button to the group rules sheet 2008-12-13 17:18:28 +00:00
Mitchell Livingston df4c46b73a revert last change - it didn't load the values properly 2008-12-09 01:01:29 +00:00
Mitchell Livingston f36d99ad74 load the rules table before showing the group rules sheet 2008-12-09 00:51:08 +00:00
Mitchell Livingston acf4f375bb add a description to the groups rules sheet 2008-12-08 23:38:01 +00:00
Mitchell Livingston b75cfdec54 auto-group considers all trackers 2008-12-08 04:11:08 +00:00
Mitchell Livingston 6e519855b8 make sure the group info is updated when adding/removing groups 2008-12-08 03:55:08 +00:00
Mitchell Livingston 678a3f7c3e #1575 Auto-select a group for new torrents according to criteria for each group 2008-12-08 03:26:28 +00:00
Mitchell Livingston 418d04374c simplify the code for moving rows in the groups table and fix a bug with disabled elements when adding a group when there are no previous groups 2008-12-06 20:41:18 +00:00
Mitchell Livingston 1dc7ba9583 rename GroupsWindowController.[hm] to GroupsPrefsController.[hm] and change it to an NSObject; remove dead code 2008-12-01 01:44:38 +00:00
Renamed from macosx/GroupsWindowController.m (Browse further)