use crate::common::*;
use crate::Foundation::*;
extern_class!(
#[derive(PartialEq, Eq, Hash)]
pub struct NSUUID;
unsafe impl ClassType for NSUUID {
type Super = NSObject;
}
);
extern_methods!(
unsafe impl NSUUID {
#[method_id(@__retain_semantics Other UUID)]
pub fn UUID() -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init init)]
pub fn init(this: Option<Allocated<Self>>) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithUUIDString:)]
pub fn initWithUUIDString(
this: Option<Allocated<Self>>,
string: &NSString,
) -> Option<Id<Self, Shared>>;
#[method(compare:)]
pub unsafe fn compare(&self, otherUUID: &NSUUID) -> NSComparisonResult;
#[method_id(@__retain_semantics Other UUIDString)]
pub fn UUIDString(&self) -> Id<NSString, Shared>;
}
);