Commit graph

151 commits

Author SHA1 Message Date
Ryan McGrath 0c604c2e84
Further work on iOS support, mulling over how to make this cleaner 2020-04-02 13:16:20 -07:00
Ryan McGrath 47ddf7f5a3
Experimental iOS support - delegate pattern working in simulator, need to figure out scenes next. 2020-04-01 01:04:34 -07:00
Ryan McGrath ab53150abc
Finalize some NSString handling that I'd been mulling over. This should be much more sound and transparent regarding ownership while keeping the same general approach that's been working so far. 2020-03-31 20:59:08 -07:00
Ryan McGrath db4da24268
Fix BOOL return values from NSUserDefaults, improve documentation 2020-03-31 19:00:03 -07:00
Ryan McGrath 8c39ea6f94
Cleaning up 2020-03-31 17:38:47 -07:00
Ryan McGrath f4ca9770e1
Fix NSData wrapper so storing and retrieving bytes in UserDefaults works as expected, with hopefully little to no cloning issues. Wrap the NSNumber logic into a proper type. More documentation/cleanup, still ongoing. 2020-03-31 15:22:00 -07:00
Ryan McGrath 3f9c9f992c
Almost done with a proper NSUserDefaults wrapper... 2020-03-30 20:23:54 -07:00
Ryan McGrath e4ddfb975a
Further work on wrapping NSUserDefaults 2020-03-30 01:35:11 -07:00
Ryan McGrath ccaf61f56f
Webview patches 2020-03-30 00:37:10 -07:00
Ryan McGrath ad54670ffd
Docs need cleanup again, but fixing the README so nobody is confused... much 2020-03-29 22:35:19 -07:00
Ryan McGrath d69f59d284
Further work on splitting for macOS/iOS support 2020-03-29 22:33:51 -07:00
Ryan McGrath 27e534a612
Ongoing documentation work, reworked Toolbar. Moved away from Rc/RefCell approach and will require users to handle interior mutability themselves, because Cocoa makes it tricky to automate. Beginning to figure out the split where macOS/iOS code should live. 2020-03-29 20:49:36 -07:00
Ryan McGrath 4266c4c8dc
Ongoing cleaning efforts 2020-03-28 22:05:40 -07:00
Ryan McGrath 6891e83019
Blockquote that 2020-03-28 20:32:31 -07:00
Ryan McGrath 566c13ada8
A typo 2020-03-28 18:46:49 -07:00
Ryan McGrath 0b362a59d1
appkit -> cacao, updated README 2020-03-28 18:45:24 -07:00
Ryan McGrath 8d490b3e33
Further work on docs 2020-03-27 20:13:51 -07:00
Ryan McGrath b573fba459
Working on fixing up docs, general cleanup 2020-03-26 20:19:52 -07:00
Ryan McGrath ebec770581
Bringing Window to a usable point 2020-03-26 19:02:53 -07:00
Ryan McGrath 6b8aad4a94
Fix up the repo so examples work as they should 2020-03-26 18:06:11 -07:00
Ryan McGrath d512b7bcf5
Bring back dependency on core-graphics because, well, I'm apparently a moron. Further sketching out of WindowDelegate. 2020-03-26 17:31:42 -07:00
Ryan McGrath b0232ca225
Window movement delegate callback support 2020-03-25 19:57:47 -07:00
Ryan McGrath 34b02b28b5
On dropping a View, which is the originating View, we check to see if there's a superview and remove it if so 2020-03-24 21:42:07 -07:00
Ryan McGrath d7c367e7e9
Experimenting with Drop logic - will extend to View/etc if it works fine with Window. I... think it will. 2020-03-23 21:16:13 -07:00
Ryan McGrath 8910a88a93
Fix up the WebView implementation so that Subatomic compiles on the latest appkit codebase. Undo an experimental NSString wrapper type that caused problems. Docs forthcoming. 2020-03-21 16:46:35 -07:00
Ryan McGrath e4f96b4ab5
Working on getting WKWebView working again - close 2020-03-20 18:37:00 -07:00
Ryan McGrath c1da7b1b37
Clean up warnings, finish moving View/ViewController to new paradigm, general cleanup - need to rewrite docs 2020-03-20 15:03:19 -07:00
Ryan McGrath fc53848ba2
Add in an autolayout example 2020-03-20 14:02:46 -07:00
Ryan McGrath e50bb25e9f
More work on Application methods 2020-03-20 13:12:01 -07:00
Ryan McGrath f45c86743b
Moving to a model where ther are actual examples, since the handler logic is finally ironed out well. 2020-03-19 20:07:44 -07:00
Ryan McGrath bd82b8f27b
Force-drain NSAutoReleasePool after run completes, feature-gate webview, refactor app module structure to match the rest 2020-03-17 19:11:03 -07:00
Ryan McGrath aacfc81b99
Refactor rest of modules to use local foundation 2020-03-17 18:19:56 -07:00
Ryan McGrath c16dad564e
Wrap Foundation ourselves, because there's some considerations down the road and it's easier to do this now. 2020-03-17 16:55:09 -07:00
Ryan McGrath 66ffd83db0
CloudKit feature gate, move wrapper over to the module 2020-03-16 22:22:15 -07:00
Ryan McGrath 79bb456b93
Place User Notifications behind a feature flag, as the framework technically requires code signing 2020-03-16 22:08:12 -07:00
Ryan McGrath 5884d267c9
Remove unused code in color module 2020-03-15 23:15:20 -07:00
Ryan McGrath 7b5ed88bb1
Further work on finishing up AppController interface 2020-03-15 23:10:43 -07:00
Ryan McGrath f1689d7cf9
Nearing 100% coverage for API. This brings in some necessary cleanup now that we've found the right approach to all of this. 2020-03-15 19:53:09 -07:00
Ryan McGrath 3a89d8e5f5
Patch a few small autolayout bugs - not a huge fan of the clone() in constraints but fine for now 2020-03-12 19:18:16 -07:00
Ryan McGrath 86980d7329
Fixed color math, and ported AutoLayout 2020-03-12 18:18:32 -07:00
Ryan McGrath 3d93b04455
More or less finalized Toolbar support, at least for now 2020-03-12 12:33:41 -07:00
Ryan McGrath db33c382b7
Fix up the NSToolbar wrapper to follow the new paradigm 2020-03-11 19:45:35 -07:00
Ryan McGrath 8a5af12b47
Clean up some pointer shuffling stuff 2020-03-11 18:38:33 -07:00
Ryan McGrath f49eff24f9
Devised a better (safer) way to handle UI/Controller/Delegate setup 2020-03-11 17:56:17 -07:00
Ryan McGrath 80ba209413
Ongoing efforts, experimenting with stack/heap issues (ObjC/NSObject/AppKit are... mostly heap already), further work on Pasteboard support 2020-03-10 20:09:24 -07:00
Ryan McGrath d68cbdc450
Rename this folder because I need my tab-completes to not piss me off 2020-03-09 17:00:38 -07:00
Ryan McGrath 6c12a8fa29
General cleanup, implementing an NSPasteboard wrapper, support for setting background colors on views 2020-03-06 19:35:18 -08:00
Ryan McGrath 0446227a8d
Ongoing changes for the core.
- Implemented basic support for `NSPasteBoardType` and drag/drop events.
  Not complete, but close.
- `geometry.rs` implements a basic `Rect`, with some conversion logic
  for `NSRect`. Nothing special.
- Changes to `Window` to remove some of the forced delegate pattern.
  Autosave name is now just another setter.
- `WebView` no longer has a backing `View` by default, so implementors
  need to handle that on their own.
- Beginning to wrap `NSFileManager`, which is kind of important given
  that this supports both Sandboxed and non-Sandboxed apps.
- Documentation work ongoing.
2020-03-04 18:33:11 -08:00
Ryan McGrath 5cd3a53681
Warnings/imports/unused code cleanup, rework some enums that seemed a bit wonky in hindsight, set WKWebView download delegate pieces as a feature flag since it's technically a private API 2020-02-29 15:34:07 -08:00
Ryan McGrath dd88beeb10
.gitignore lol 2020-02-27 18:34:59 -08:00