Update objc2 version (#2936)
* Upgrade to objc2 v0.4.0 and icrate v0.0.3 * Fix `touchBar` method * Use ClassType::alloc * Use #[method_id(...)] functionality in declare_class!
This commit is contained in:
parent
ae7497e18f
commit
e33d2bee6c
53 changed files with 815 additions and 793 deletions
|
|
@ -32,7 +32,7 @@ pub(crate) use self::{
|
|||
use crate::{
|
||||
error::OsError as RootOsError, event::DeviceId as RootDeviceId, window::WindowAttributes,
|
||||
};
|
||||
use objc2::rc::{autoreleasepool, Id, Shared};
|
||||
use objc2::rc::{autoreleasepool, Id};
|
||||
|
||||
pub(crate) use crate::icon::NoIcon as PlatformIcon;
|
||||
pub(crate) use crate::platform_impl::Fullscreen;
|
||||
|
|
@ -50,9 +50,9 @@ impl DeviceId {
|
|||
pub(crate) const DEVICE_ID: RootDeviceId = RootDeviceId(DeviceId);
|
||||
|
||||
pub(crate) struct Window {
|
||||
pub(crate) window: Id<WinitWindow, Shared>,
|
||||
pub(crate) window: Id<WinitWindow>,
|
||||
// We keep this around so that it doesn't get dropped until the window does.
|
||||
_delegate: Id<WinitWindowDelegate, Shared>,
|
||||
_delegate: Id<WinitWindowDelegate>,
|
||||
}
|
||||
|
||||
impl Drop for Window {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue