Commit Graph

72 Commits

Author SHA1 Message Date
Pietro Gagliardi 4ba0f795eb Switched from manually enabling menu items on OS X to automatic enabling, just like with the application menu. Same code :/ Also cleaned up useless [NSMenuItem setEnabled:] calls. 2015-05-03 21:37:45 -04:00
Pietro Gagliardi 82312861e9 Implemented menu finalization on OS X. 2015-05-03 21:28:21 -04:00
Pietro Gagliardi d25c954d9f Added code to get the active window for menu events on Mac OS X. Will test next. 2015-05-03 21:05:55 -04:00
Pietro Gagliardi 7086373807 Fixed an error left over in the previous commit. 2015-05-03 19:58:12 -04:00
Pietro Gagliardi fd4c559e86 Removed the typename argument from uiAlloc() and uiRealloc(). 2015-05-03 19:52:24 -04:00
Pietro Gagliardi 511cc76ef8 Investigated setAppleMenu:; decided to save it for later. 2015-05-03 16:28:46 -04:00
Pietro Gagliardi 2186192502 Changed c-> to uiControl(c)-> in the various newcontrol files for consistency. 2015-05-03 14:44:46 -04:00
Pietro Gagliardi eae2e92d87 Confirmed that NSMenuValidation was only informal; thanks to Psy| in irc.freenode.net/#macdev for explaining how informal protocols actually worked (since the declaration in the headers threw me off). 2015-05-03 13:39:54 -04:00
Pietro Gagliardi 60d30688eb More TODOs. 2015-05-03 13:18:27 -04:00
Pietro Gagliardi ee3d9c5165 Some more TODO resolution. 2015-05-03 13:17:53 -04:00
Pietro Gagliardi 9ff20ad5f6 Implemented the bin OS parent check on OS X now that I know it actually IS meaningful. 2015-05-03 12:59:11 -04:00
Pietro Gagliardi 2a6da36542 Finished the OS X menu disabling code. 2015-05-03 02:45:59 -04:00
Pietro Gagliardi 810e2225ea Started writing code for proper Quit/Preferences/About enabling and disabling on Mac OS X. 2015-05-02 23:04:37 -04:00
Pietro Gagliardi a8fd88a5f9 Confirmed a TODO. 2015-05-02 21:05:08 -04:00
Pietro Gagliardi 454b3ecb03 Changed the various OS-side control creation functions to use Make like uiMakeContainer() does instead of New. 2015-05-02 20:51:00 -04:00
Pietro Gagliardi 57bc11d67c TODO consolidation. 2015-05-02 14:58:29 -04:00
Pietro Gagliardi c89b473c76 Added the Services menu to the OS X application menu. 2015-05-02 11:11:13 -04:00
Pietro Gagliardi f86d312c74 Verified action signatures in darwin/menu.; thanks to mikeash in irc.freenode.net/#macdev for confirming. 2015-05-01 10:31:56 -04:00
Pietro Gagliardi 2eb995f93f Implemented complain() on Mac OS X. 2015-04-30 23:28:02 -04:00
Pietro Gagliardi 442907ad64 Implemented menu uniqueness checks on OS X. More TODOs. 2015-04-30 23:24:52 -04:00
Pietro Gagliardi 9f2bb5b1fa Oh wait it wasn't duplicate, but now it's in the right place. 2015-04-30 22:47:29 -04:00
Pietro Gagliardi 8b74c2fb92 Removed a duplicate TODO. 2015-04-30 22:46:24 -04:00
Pietro Gagliardi 1034978a2e Attempted to fix uiTab resource freeing on OS X. Seems to work for removing tabs, not sure about deleting controls because of other crashes. 2015-04-30 19:56:12 -04:00
Pietro Gagliardi e2cd6fe9d8 More TODOs. 2015-04-30 18:05:12 -04:00
Pietro Gagliardi 4035aee115 Marked a TODO in darwin/menu.m as resolved; we were already doing it properly. 2015-04-30 18:02:21 -04:00
Pietro Gagliardi 185d9cf122 Made refcounting for new control on GTK+ and OS X consistent. 2015-04-30 17:57:54 -04:00
Pietro Gagliardi 40dee5a693 Added bin destruction OS parent checks. 2015-04-30 17:49:38 -04:00
Pietro Gagliardi d215ee147f Implemented the new uiTab changes on the Mac OS X backend. 2015-04-30 16:34:38 -04:00
Pietro Gagliardi c6023ee151 Some TODO resolution and changes. 2015-04-30 15:08:03 -04:00
Pietro Gagliardi c8695e4ca2 Decided to remove allocation logging. Leak checking can be done with dedicated tools. 2015-04-30 13:37:13 -04:00
Pietro Gagliardi 127f025eee Decided not to bother with destruction blocking for now. 2015-04-30 13:30:00 -04:00
Pietro Gagliardi 8f79f0596f Set hidden flag variables BEFORE updating parent containers. Otherwise, parents won't reposition children correctly on systems where updates happen immediately (like OS X). 2015-04-29 14:25:34 -04:00
Pietro Gagliardi d7f903373f Fixed upside-down container issues on OS X. 2015-04-29 14:21:12 -04:00
Pietro Gagliardi 6c6bce3702 Moved everything back to the top level. 2015-04-29 11:02:38 -04:00
Pietro Gagliardi ec7f461af1 Merged back the basic controls on Mac OS X. 2015-04-29 10:28:17 -04:00
Pietro Gagliardi 4c280ca42c Removed or moved a bunch of stale files from the old source. All that's left now is to re-add the main controls and recreate the test program. 2015-04-29 10:20:25 -04:00
Pietro Gagliardi 9f59c0059c Migrated darwin/tab.m. Now to test... 2015-04-29 10:06:39 -04:00
Pietro Gagliardi f45e57494b Migrated darwin/newcontrol.m. 2015-04-29 09:38:20 -04:00
Pietro Gagliardi 855bca9b0c Started the stub menu code. 2015-04-28 14:17:28 -04:00
Pietro Gagliardi bf401201f9 Removed a whole bunch of files from the old source tree. 2015-04-28 13:51:13 -04:00
Pietro Gagliardi 9ef8019159 Quick OS X menu fixup. 2015-04-21 18:24:48 -04:00
Pietro Gagliardi 2f1a806a31 More TODOs. 2015-04-21 18:10:48 -04:00
Pietro Gagliardi de3c1cc0ea Implemented the standard application menu on the Mac OS X backend. 2015-04-21 18:09:12 -04:00
Pietro Gagliardi e26257006f Converted the OS X menu code to the changes in the past few commits and made a few other small changes. 2015-04-21 00:46:30 -04:00
Pietro Gagliardi b258e1fc82 Began implementing menus on Mac OS X. 2015-04-20 22:34:31 -04:00
Pietro Gagliardi 21a29a5468 More destruction rules following code. 2015-04-19 22:59:06 -04:00
Pietro Gagliardi 24469a6e7b Added code to check that a control is not destroyed while it has a parent. This isn't enough for uiStack, though... 2015-04-19 22:53:09 -04:00
Pietro Gagliardi 8534261f35 FINALLY implemented uiTabDeletePage() on Mac OS X. 2015-04-19 11:53:31 -04:00
Pietro Gagliardi c99e8d4af4 Added uiTab page tracking to the Mac OS X backend; necessary for tabDeletePage(). Fixed some small NULL pointer errors in some other files too. 2015-04-19 11:41:23 -04:00
Pietro Gagliardi 5ceda42d74 More OS X lifetime stuff. 2015-04-18 23:17:13 -04:00