Update icrate to v0.0.4 (#2992)

This commit is contained in:
Mads Marquart
2023-08-02 16:30:41 +02:00
committed by Kirill Chibisov
parent 5b90a4e194
commit d7827b36d3
11 changed files with 62 additions and 62 deletions

View File

@@ -3,7 +3,7 @@ use std::ptr::NonNull;
use icrate::Foundation::NSObject;
use objc2::declare::{IvarBool, IvarEncode};
use objc2::rc::Id;
use objc2::runtime::Object;
use objc2::runtime::AnyObject;
use objc2::{declare_class, msg_send, msg_send_id, mutability, ClassType};
use super::app_state::AppState;
@@ -43,7 +43,7 @@ declare_class!(
}
#[method(applicationDidFinishLaunching:)]
fn did_finish_launching(&self, _sender: Option<&Object>) {
fn did_finish_launching(&self, _sender: Option<&AnyObject>) {
trace_scope!("applicationDidFinishLaunching:");
AppState::launched(
*self.activation_policy,
@@ -53,7 +53,7 @@ declare_class!(
}
#[method(applicationWillTerminate:)]
fn will_terminate(&self, _sender: Option<&Object>) {
fn will_terminate(&self, _sender: Option<&AnyObject>) {
trace_scope!("applicationWillTerminate:");
// TODO: Notify every window that it will be destroyed, like done in iOS?
AppState::exit();