Thread with 3 posts

jump to expanded post

don'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!()
Open thread at this post