use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct PHObject;
);
unsafe impl Send for PHObject {}
unsafe impl Sync for PHObject {}
extern_conformance!(
unsafe impl NSCopying for PHObject {}
);
unsafe impl CopyingHelper for PHObject {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for PHObject {}
);
impl PHObject {
extern_methods!(
#[unsafe(method(localIdentifier))]
#[unsafe(method_family = none)]
pub unsafe fn localIdentifier(&self) -> Retained<NSString>;
);
}
impl PHObject {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(PHObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct PHObjectPlaceholder;
);
unsafe impl Send for PHObjectPlaceholder {}
unsafe impl Sync for PHObjectPlaceholder {}
extern_conformance!(
unsafe impl NSCopying for PHObjectPlaceholder {}
);
unsafe impl CopyingHelper for PHObjectPlaceholder {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for PHObjectPlaceholder {}
);
impl PHObjectPlaceholder {
extern_methods!();
}
impl PHObjectPlaceholder {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}