Skip to content

Instantly share code, notes, and snippets.

View 2tvenom's full-sized avatar

Pavel <Ven> Gulbin 2tvenom

View GitHub Profile
use crate::outline::{data_source::OutlineViewDataSource, delegate::OutlineViewDelegate};
use crate::AppDelegate;
use objc2::__framework_prelude::ProtocolObject;
use objc2::rc::{Retained, Weak};
use objc2::{declare_class, msg_send_id, sel, ClassType, DeclaredClass, MainThreadOnly};
use objc2_app_kit::{
NSButton, NSColor, NSOutlineView, NSScrollView, NSSplitViewController, NSSplitViewItem,
NSViewController,
};
use objc2_foundation::{ns_string, MainThreadMarker, NSObjectProtocol};
use crate::outline::{data_source::OutlineViewDataSource, delegate::OutlineViewDelegate};
use crate::AppDelegate;
use objc2::__framework_prelude::ProtocolObject;
use objc2::rc::{Retained, Weak};
use objc2::{declare_class, msg_send_id, sel, ClassType, DeclaredClass, MainThreadOnly};
use objc2_app_kit::{
NSButton, NSColor, NSOutlineView, NSScrollView, NSSplitViewController, NSSplitViewItem,
NSViewController,
};
use objc2_foundation::{ns_string, MainThreadMarker, NSObjectProtocol};
#![deny(unsafe_op_in_unsafe_fn)]
#![allow(clippy::incompatible_msrv)]
mod tut;
use std::cell::OnceCell;
use std::ffi::c_void;
use objc2::rc::{Id, Retained};
use objc2::encode::{Encode, RefEncode};
use objc2::runtime::{AnyObject, ProtocolObject};