Thread with 3 posts
jump to expanded postdon't mind me, just writing some perfectly ordinary code here
let mut env = environment::Environment::new_without_app(options)?;
let env = &mut env;
let screen: objc::id = objc::msg_class![env; UIScreen mainScreen];
let bounds: frameworks::core_graphics::CGRect = objc::msg![env; screen bounds];
let window: objc::id = objc::msg_class![env; UIWindow alloc];
let window: objc::id = objc::msg![env; window initWithFrame:bounds];
let color: objc::id = objc::msg_class![env; UIColor purpleColor];
() = objc::msg![env; window setBackgroundColor:color];
//() = objc::msg![env; window makeKeyAndVisible];
let main_run_loop: objc::id = objc::msg_class![env; NSRunLoop mainRunLoop];
() = objc::msg![env; main_run_loop run];
todo!()
@hikari I was going to say to use [objc2](https://crates.io/crates/objc2) and [icrate](https://crates.io/crates/icrate) for that but this is still not merged
https://github.com/madsmtm/objc2/pull/433
@mary my code probably looks similar to usage of a rust objective-c bindings crate but it is in fact Something Else Entirely https://github.com/hikari-no-yume/touchHLE/blob/trunk/src/objc/messages.rs