Commit Graph

2363 Commits

Author SHA1 Message Date
Pietro Gagliardi b2e49b3698 Split out the code to add a Control to a Mac OS X Window into its own function. 2014-03-03 15:52:39 -05:00
Pietro Gagliardi 11d4f96e77 More TODOs. 2014-03-03 15:47:12 -05:00
Pietro Gagliardi 54a63eb712 Removed a leftover crash guard from the Mac OS X sysData code (in this case sysData.preferredSize()). 2014-03-03 15:45:26 -05:00
Pietro Gagliardi 4923f3944c Removed crash guards from the Mac OS X sysData code. Also removed some leftover ones from the GTK+ code. 2014-03-03 15:44:46 -05:00
Pietro Gagliardi e4c70b2b15 More TODOs. 2014-03-03 15:37:02 -05:00
Pietro Gagliardi 383933c45e Added Mac OS X ProgressBars. Mac OS X now feature-equal! 2014-03-03 15:32:54 -05:00
Pietro Gagliardi 874491a871 Added the scrollbars themselves to the NSScrollView backing the Mac OS X Listboxes. Also added a few TODOs. I think the Mac OS X Listbox implementation is now finished. 2014-03-03 14:57:20 -05:00
Pietro Gagliardi 8bacbf8cd6 Wrapped Mac OS X Listboxes in NSScrollViews. Their preferredSize seems to be more reasonable now. Now to just add scrollbars... 2014-03-03 14:50:03 -05:00
Pietro Gagliardi dd2abbacce More TODOs related to the previous commit. 2014-03-03 14:39:33 -05:00
Pietro Gagliardi 674640abe8 Changed how the preferred size of controls is determined to accomodate NSTableView, NSScrollView, and NSProgressIndicator. Updated TODOs to mark other weirdnesses (such as Label text that used to get cropped) that no longer happen because of this. Now for putting Listboxes in NSScrollViews. 2014-03-03 14:37:16 -05:00
Pietro Gagliardi 0333f799d9 Added a Listbox preferredSize test window to the main test program, as it appears I'm going to have to change how sysData.preferredSize() works on Mac OS X to acommodate NSTableView, NSScrollView, and NSProgressIndicator... 2014-03-03 13:58:20 -05:00
Pietro Gagliardi 842815b2e0 Fixed selection grabbing and also append/insert/removal crashes: all were selector name typos. Also some TODOs Now to make this scroll/confine it to a scroll view... 2014-03-03 01:51:54 -05:00
Pietro Gagliardi ab2065e5ba Ah there we go; columnWithIdentifier: returns an index; we wanted tableColumnWithIdentifier:. Now to fix the crashing when getting list information... 2014-03-03 01:43:18 -05:00
Pietro Gagliardi 403f9cab35 Fixed a typo'd selector name related to Listbox selection. Adding items still doesn't work... 2014-03-02 23:37:50 -05:00
Pietro Gagliardi 463b347911 Whoops, forgot to define sysData.selectedIndices() and sysData.selectedTexts() for Mac OS X now that I have those written! Adding items is still a no-op... 2014-03-02 23:36:46 -05:00
Pietro Gagliardi 0baf0f4a97 Fixed the compiler errors. The Mac OS X Listboxes are created!... but don't show any items. Let's figure out why. 2014-03-02 23:28:43 -05:00
Pietro Gagliardi bdce1b9dc2 Added untested Mac OS X Listbox code. Won't compile yet... 2014-03-02 23:11:29 -05:00
Pietro Gagliardi 77c0198751 Added Mac OS X Labels and a bunch of TODOs. Now for Listboxes... oh boy... 2014-03-02 19:56:54 -05:00
Pietro Gagliardi 75c34a0789 Fixed incorrect object placement by using the window's content rect, not the window's frame, to define the window size. The coordinate system being flipped is still not fixed. 2014-03-02 19:16:36 -05:00
Pietro Gagliardi 38a1b1b203 Fixed incorrect redrawing of Mac OS X windows after resize. Still need to fix the wrong rect issues... 2014-03-02 19:13:26 -05:00
Pietro Gagliardi e2476a567d Added the Mac OS X implementation of LineEdit. It seems to work... mostly. The password entry field is outside the window for some reason; need to figure out how to place things in their proper place. 2014-03-02 19:01:34 -05:00
Pietro Gagliardi 4bc35e2db5 Finished the implementation of Combobox on Mac OS X. 2014-03-02 18:38:45 -05:00
Pietro Gagliardi e20b468472 Added the Mac OS X implementation of messageboxes. 2014-03-02 18:37:25 -05:00
Pietro Gagliardi 234b724403 Added the other Combobox modification functions to the Mac OS X backend. Before continuing, I'll get messageboxes working... 2014-03-02 17:44:13 -05:00
Pietro Gagliardi 01e5871741 Added the beginning of the Mac OS X implementation of Combobox; also added a file to plan out how lists will be implemented/are being implemented. 2014-03-02 17:19:25 -05:00
Pietro Gagliardi db1c6c5c17 Added an alternate textsel for Mac OS X Comboboxes. 2014-03-02 16:46:27 -05:00
Pietro Gagliardi 3279f4f43a Added the alternate value as a parameter to Mac OS X sysData.make() in preparation for Comboboxes and Listboxes. 2014-03-02 14:43:31 -05:00
Pietro Gagliardi 5f6a4ee690 Added Mac OS X Checkboxes. 2014-03-02 09:17:42 -05:00
Pietro Gagliardi 3e44abc1b8 Now that we have everything up to and including Buttons up and running, we no longer need the darwintest. 2014-03-01 22:40:14 -05:00
Pietro Gagliardi 4599e0d25e More TODOs. 2014-03-01 22:31:28 -05:00
Pietro Gagliardi 1ab2b611cd Expanded documentation for previous commit. 2014-03-01 21:52:15 -05:00
Pietro Gagliardi ca81eb0ea8 Fixed the preferredSize() stall. Dumb Intel ABI optimizations. Good thing with 10.6 minimum I won't have to worry about PowerPC compatibility... but if ARM ever comes to the desktop all bets are off. 2014-03-01 21:44:10 -05:00
Pietro Gagliardi bbb37bb2a6 Added Mac OS X Buttons. Code hangs due to a preferredSize() issue... 2014-03-01 21:34:37 -05:00
Pietro Gagliardi 859c240a21 Some error message and TODO changes related to the previous commit. 2014-03-01 20:41:30 -05:00
Pietro Gagliardi 0709351fed Attempted to fix the lack of resizable window borders by setting the NSApplication activation policy. This fixed it, and also fixed a bunch of other things, such as the application being seen as part of Terminal, lack of dock icon, lack of application menu, etc. 2014-03-01 20:31:17 -05:00
Pietro Gagliardi 10e9f6b927 Fixed non-minimizeable windows in Mac OS X; it was a simple copy-paste fail. 2014-03-01 18:04:09 -05:00
Pietro Gagliardi d9cf76c1ab Added windowDidResize: to the Mac OS X delegate for resizing windows. Now to figure out why I can't resize windows myself... 2014-03-01 18:01:30 -05:00
Pietro Gagliardi 5caf0fe84a Cleaned up loose ends with the previous commit and got window close events working on Mac OS X. Woo! 2014-03-01 17:15:26 -05:00
Pietro Gagliardi 8b497b2188 Added the getSysData() hook. Now to clean up loose ends and apply the delegate to the window. 2014-03-01 17:06:06 -05:00
Pietro Gagliardi 56eb64429d Fixed most errors. Now I just need to add a sysData pool. 2014-03-01 17:01:28 -05:00
Pietro Gagliardi 9b4e30ccf9 Started to build a single global delegate object; now to fix issues. 2014-03-01 16:56:22 -05:00
Pietro Gagliardi 0b4e1ff246 Reworded a comment in bleh_darwin.m: the docs don't imply the wrong information, they outright say the wrong information. 2014-03-01 16:01:19 -05:00
Pietro Gagliardi 91379e5a9a Added a TODO marker to the last commit. 2014-03-01 16:00:05 -05:00
Pietro Gagliardi b45db58261 Fixed 32-bit Mac OS X builds (and also got rid of clang's current warnings): turns out the correct usage of objc_msgSend_stret() is not in the official docs... 2014-03-01 15:58:54 -05:00
Pietro Gagliardi 4f49935563 Added another important Mac OS X TODO about coordinates. 2014-03-01 15:36:54 -05:00
Pietro Gagliardi a988befc45 Whoops, misspelled -[NSWindow frame] as -[NSWindow _frame]. Fixed; test program works so far! 2014-03-01 15:35:42 -05:00
Pietro Gagliardi cd7c127fcc Oops, accidentally removed the code that actually makes the appdelegateclass. Almost working... 2014-03-01 15:33:17 -05:00
Pietro Gagliardi 2e869615d3 Documentation and TODO changes. 2014-03-01 15:23:49 -05:00
Pietro Gagliardi be5458c0a3 Major code restructure to allow Cocoa to work correctly. Cocoa requires that the application loop run on the very first OS thread created, not just an any ordinary thread. To support this, your code must now be run by the UI init code. Windows and Unix builds still work fine; Mac OS X fails for reasons I now have to debug. 2014-03-01 15:18:29 -05:00
Pietro Gagliardi c8c257f8c8 Fixed a minor startup failure on Mac OS X; now for a big one: apparently the thread that calls -[NSApplication run] is NOT the main thread... 2014-03-01 14:08:53 -05:00