Commit graph

251 commits

Author SHA1 Message Date
Alex Janka 22b322cdfb more stepper bits 2024-07-07 09:48:57 +10:00
Alex Janka 1655ece898 some more input bits 2024-07-07 09:48:57 +10:00
Alex Janka 631f53214c add stepper 2024-07-07 09:48:57 +10:00
Alex Janka 671f29e56d bump objc beta 2024-07-07 09:48:57 +10:00
Nikhil e3bbb9366c
Add window level (#116)
* set window level

* fmt fixes
2023-11-19 13:05:03 -08:00
dependabot[bot] 0f64a84362
Bump actions/checkout from 3 to 4 (#105)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 10:18:11 -07:00
Mads Marquart 094ed59a04
Initial conversion to objc2 (#30)
* Use objc2

* Replace `objc_id`

* Remove sel_impl import

* Fix `add_method` calls

* Fix accessing raw FFI functions

* Fix Encode impl

* Fix message sends arguments that do not implement `Encode`

* Use immutable reference in a few places where now necessary

See https://github.com/madsmtm/objc2/pull/150 for a bit of background

* Add a few Send + Sync bounds where examples require it

This is something we'll need to look into properly

* Use `&'static Class` instead of `*const Class`

Safer and more ergonomic. Also required for `msg_send_id!` macro

* Use msg_send_id! and rc::Id

* Update objc2 to v0.3.0-beta.2

* Replace `BOOL` with `Bool` when declaring delegates

This makes cacao compile on Aarch64 again

* Remove a few impossible to use correctly `into_inner` functions

These consumed `self`, and hence also dropped `Id` variable that was responsible for keeping the returned pointer alive

* Remove a few impossible to use correctly `From` implementations

* Quickly fix UB with using BACKGROUND_COLOR ivar

* Fix double-freeing of windows

* Fix double freeing of strings

* Fix a few remaining double-frees
2023-09-11 09:59:21 -07:00
Ryan McGrath 4f40d62623
Publish 0.4.0-beta2 2023-08-01 00:28:14 -07:00
Ryan McGrath 8e23e31e14
Formatting pass 2023-08-01 00:24:14 -07:00
Ryan McGrath 33624e9418 Resolve merge conflict 2023-08-01 00:20:32 -07:00
Ryan McGrath 186a9a6c3f
Merge debug/animation-timings; support ability for drawing sublayers as one and control of layer redraw policy 2023-08-01 00:18:55 -07:00
Benedikt Terhechte e6696eaa3e
Multiple changes I had to make for Ebou (#89)
* Add segmented control, icons, toolbar

* add to demos

* doc tests

* format code

* Additional SFSymbol definitions
2023-07-31 23:51:53 -07:00
maxer137 1b577506a7
Fix Label::set_max_number_of_lines causing crash on iOS (#98) 2023-07-19 14:20:43 -07:00
Adam Gastineau 9fbb332b38
Idiomatic NSArray iteration (#97) 2023-07-19 13:40:51 -07:00
Adam Gastineau 01507f7642
Global NSEvent listener and some mouse methods (#94)
* Support for all NSEvent types and configurable event monitoring

* Useful mouse event methods

* rustfmt nightly fixes

* Use standard kind naming convention
2023-07-13 17:22:54 -07:00
Adam Gastineau aedcfe1c65
Mark how to run the nightly version of tools, and fix some text (#95) 2023-07-13 17:07:40 -07:00
Ari Lotter 9f8d946371
add haptics (#93) 2023-07-10 13:59:25 -07:00
simlay e4785bb50f
iOS support for label, text input, font, more tests (#55)
* Added a bunch of unit tests and added text input to uikit feature

* cargo fmt

* I dunno what this is but it wasnt checked in

* Fix uikit unit tests

* maybe fix cargo fmt

* Fix iOS run

* fix cargo fmt

* Maybe fix cargo fmt

* maybe fix cargo fmt

* cargo fmt

* Try to fix cargo fmt one more time

* cargo fmt
2023-07-10 00:42:46 -07:00
Ryan McGrath c148bbe6a3
Merge pull request #87 from ryanmcgrath/dependabot/cargo/core-graphics-0.23
Update core-graphics requirement from 0.22 to 0.23
2023-07-10 00:42:09 -07:00
Ryan McGrath 41f830a42a
Merge pull request #92 from ryanmcgrath/dependabot/cargo/infer-0.15
Update infer requirement from 0.13 to 0.15
2023-07-10 00:39:23 -07:00
dependabot[bot] 81adefc1b5
Update infer requirement from 0.13 to 0.15
Updates the requirements on [infer](https://github.com/bojand/infer) to permit the latest version.
- [Release notes](https://github.com/bojand/infer/releases)
- [Commits](https://github.com/bojand/infer/compare/v0.13.0...v0.15.0)

---
updated-dependencies:
- dependency-name: infer
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 08:22:10 +00:00
dependabot[bot] 5865bc6d1d
Update core-graphics requirement from 0.22 to 0.23
Updates the requirements on [core-graphics](https://github.com/servo/core-foundation-rs) to permit the latest version.
- [Commits](https://github.com/servo/core-foundation-rs/compare/core-graphics-v0.22.0...cocoa-v0.23.0)

---
updated-dependencies:
- dependency-name: core-graphics
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 09:01:32 +00:00
Ryan McGrath d417289f92
[release] 0.4.0-beta1 2023-06-08 16:09:42 -07:00
Ryan McGrath efea9032aa
[ios] Fix formatting 2023-06-08 16:01:55 -07:00
Ryan McGrath 3e3122f54c
[ios] Fix iOS demo build.
Several recent changes to the way that subclass registration is done
inadvertently impacted part of how the iOS side of things works. iOS
app initialization requires passing known class names to
`UIApplicationMain` to let the system instantiate things; we append a
random suffix to class names by default to avoid issues on macOS where
classes that are being loaded from a bundle seem to collide in the ObjC
runtime.

This change brings in two new methods in `foundation/class` to
explicitly bypass the dynamic subclass suffix generation for the rare
cases (such as the above) where we know we need it.
2023-06-08 15:51:59 -07:00
Ryan McGrath 44ad4886e7
Merge pull request #75 from ryanmcgrath/dependabot/github_actions/baptiste0928/cargo-install-2
Bump baptiste0928/cargo-install from 1 to 2
2023-06-08 14:51:09 -07:00
Ryan McGrath eecdb13f5b
Merge pull request #69 from maxjvh/trunk
implement acceptsFirstMouse on webview
2023-06-08 14:50:48 -07:00
Ryan McGrath 2f889af736
Merge pull request #85 from rizerco/ios-fix
Partially fixed building for iOS.
2023-06-08 14:42:11 -07:00
Luke Rogers 81fa4e698e Fixed building for iOS. 2023-05-31 12:00:19 +01:00
Ryan McGrath 9628498c06
Merge pull request #83 from semtexzv/fix-button
Add missing button apis
2023-05-07 12:24:16 -07:00
Michal Hornický f2f6a1bcfa fix: Add missing button apis 2023-05-07 15:22:34 +02:00
Ryan McGrath 589ff8c789
Fixes #82 2023-05-01 03:47:35 -07:00
Ryan McGrath a1f2711ceb
Merge pull request #68 from simlay/fix-ios-simulator-boot
Fix iOS CI and update infer dependency
2023-04-25 16:55:28 -07:00
Ryan McGrath 2840b7f70f
Merge branch 'trunk' into fix-ios-simulator-boot 2023-04-25 16:55:16 -07:00
Ryan McGrath 1d7289966b
Merge pull request #73 from ryanmcgrath/dependabot/cargo/infer-0.13
Update infer requirement from 0.9 to 0.13
2023-04-25 16:54:04 -07:00
Ryan McGrath f24261747c
Merge pull request #79 from MerlinDE/fix_register_class
Fixes possible duplicate objc class registration.
2023-04-25 16:53:44 -07:00
Ryan McGrath 6687ac5125
Merge pull request #80 from JoshuaBrest/patch-subtitle-and-safearea-example
Add safe-area example and also add support for subtitle in the unified and expanded toolbar types
2023-04-24 01:19:13 -07:00
Joshua Brest 5837dde564
Forgot subtitle 2023-04-24 03:48:31 +08:00
Joshua Brest 28c280556a
Whoops, forgot "{}" 2023-04-24 03:46:52 +08:00
Joshua Brest 8056329f65
My commit for the repo built in rust called Cacao 2023-04-24 03:31:58 +08:00
Alexander Czernay ff85e24055 Applies rustfmt.toml rules 2023-04-17 21:35:49 +02:00
Alexander Czernay 718c831bc4 Refactor to use load_or_register_class 2023-04-16 21:24:44 +02:00
Alexander Czernay 2803922f3a Fixes possible duplicate objc class registration.
This can happen in environments like plugins, where cacao can exist multiple times and thus tries to create and register its objc classes more than once.
2023-04-16 10:47:32 +02:00
Ryan McGrath 1d76dce75f
Merge pull request #74 from terhechte/popover_support 2023-04-01 21:24:39 -07:00
Ryan McGrath 5e7e516749
Merge pull request #76 from siketyan/feat/publish-objcaccess 2023-04-01 21:23:53 -07:00
Natsuki Ikeguchi 64908e5893
feat: Publish objc_access module
Signed-off-by: Natsuki Ikeguchi <me@s6n.jp>
2023-04-01 20:44:02 +09:00
dependabot[bot] 45d34ad632
Bump baptiste0928/cargo-install from 1 to 2
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) from 1 to 2.
- [Release notes](https://github.com/baptiste0928/cargo-install/releases)
- [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md)
- [Commits](https://github.com/baptiste0928/cargo-install/compare/v1...v2)

---
updated-dependencies:
- dependency-name: baptiste0928/cargo-install
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 09:14:39 +00:00
Benedikt Terhechte 7e724934a5 add support for popovers 2023-03-03 12:15:28 +01:00
dependabot[bot] f05bcdb296
Update infer requirement from 0.9 to 0.13
Updates the requirements on [infer](https://github.com/bojand/infer) to permit the latest version.
- [Release notes](https://github.com/bojand/infer/releases)
- [Commits](https://github.com/bojand/infer/compare/v0.9.0...v0.13.0)

---
updated-dependencies:
- dependency-name: infer
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 09:07:17 +00:00
max e5e428cdbc add acceptsFirstMouse to webview 2022-11-05 13:39:06 +02:00