- Changes trait callbacks to receive a `&str` rather than `String`.
- Fixes a bug where multiple text field types with different delegates
would not receive the right delegate type when coming from the
Objective-C side.
- Minor cleanup.
- Anchors are now enums, which help in debugging constraint issues.
- Enum types that are acceptable for constraint generation are now
matched at runtime, and provide better error messages if a constraint
can't be satisfied and crashes the app.
- `left` and `right` anchors are now supported on all widgets, fixing an
oversight from early iterations of the framework.
- Reduces `unsafe` usage by a decent amount when setting constraint
pointers for widget types.
added text_should_begin_editing(), text_did_begin_editing(), text_did_change(), text_should_end_editing() and text_did_end_editing() event handlers
for now these only take the value from the TextField and hand it over as a String
- Basic support for `AttributedString` type.
- `Debug` implementations across the board to ease debugging issues.
- Methods that take `Color` and `Font` types now accept an `AsRef` to
make implementing less of a headache.
- Cleanup of the `utils` module.
- Adds support for NSSplitViewController.
- Reworks NSMenu support to be cleaner with enum variants.
- Reworks the Foundation underpinnings to be a bit safer and more clear
in how they're used and passed around.
- Changes to docs structure for push towards v0.1.
- Examples updated to account for changes.
- Beginning to transition View types to use Rc/RefCell internally,
which should provide better guarantees about ownership on the Rust side.
This is also important for certain Objective-C side scenarios where we
may need to set an ivar after creation, which requires some level of
mutability. This may also possibly help bring down the unsafe usage,
which would be cool.
- Rewrote the Color module; this now handles system colors better, and
provides support for dynamic color creation. Supporting combinations
of dark/light/contrast is now possible with handler passed in via
`Color::dynamic`. This still has work to do in terms of some accessor
methods and such, but it works well for now. The `to_platform...`
method should be removed before v0.1.
- Added a new feature for enabling fallback color usage on older macOS
versions that don't support system colors. This may honestly never be
used, but it cost nothing to implement.
- Fixed a bug in the Autolayout wrapper where dereferencing could cause
constraints to crash at runtime.
- Support setting text color on labels.
- Support setting text color on buttons, albeit very hacky right now.
This needs to be extracted and/or cleaned up, but getting it sketched
out was important for this commit.
- Support setting a key equivalent on buttons.
- Creating a local event monitor is now possible.
- Examples updated; Calculator clone example added.
The only API breaking change in this commit from earlier commits should
be `color::rgb` needing to be `color::Color` followed by a
`Color::rgb(...)` call.
- Reconfigured subclass creation, as there was a
subtle-but-big-when-it-hit bug in the prior method where bridge
callbacks would lose context of the appropriate delegate when calling
the trait method. The new approach found in `src/foundation/class.rs`
maps and caches subclass creation, and subclasses are now more
apparent when debugging from the Objective-C side as we can carry
their intended name/usage through. Not applied to all yet, but
eventually.
- Cleaned up a number of linter warnings that had grown over time.
- Delegate traits now require an associated const `NAME`, which is used
for subclass creation.
- (macOS) Toolbars now supported setting selected items, which is
typically used in preferences screens.
- (macOS) Windows now support setting the toolbar display style. On Big
Sur, this works as intended - it's a noop on older OS's that don't
support it.
- Support for system icons for macOS preferences windows.
Still a bit to go to flesh this all out, but it's getting there - at
which point then iOS supoort can be folded in easier.
- Filesystem Save/Open panels can return PathBuf's instead of Url's,
which feels more native to Rust.
- Support for drawing into an Image context with Core Graphics.
- ListView swipe-to-reveal action support.
- Experimental ListView cell reuse support.
- Updates to QuickLook to also support PathBuf's.
- Added support for basic Cursor management.
- Added support for NSWindow cancelOperation: callbacks. It's not...
perfect, but it works as a discrete hook.
- Added support for NSProgressIndicator.
- Properly forward Error types from QuickLook generation calls, and
future-proof the ThumbnailQuality enum.
- Add support for configuring Label line break mode.
- Added support for Image
- Added a QuickLook feature, to enable thumbnail generation.
- Added support for NSButton.
- Fixed a bug where App activation under Big Sur would leave menus
without the ability to be used.
- Added the ability for Buttons and ToolbarItems to execute callbacks.
- Added support for Labels and TextFields.
- Added support for MenuItems to have callbacks as well.
- Preliminary ListView support; you have to cache your ListViewRow items
yourself for the time being, but it works.
- Animation support for ListView operations.
- Support for ScrollViews.
- Helpers for dispatching actions to the main thread (for UI work).
- Updated the Dispatcher trait to make thread handling simpler.
- Basic font support.