use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
pub type NSDataAssetName = NSString;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSDataAsset;
unsafe impl ClassType for NSDataAsset {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCopying for NSDataAsset {}
unsafe impl NSObjectProtocol for NSDataAsset {}
extern_methods!(
unsafe impl NSDataAsset {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics Init initWithName:)]
pub unsafe fn initWithName(
this: Allocated<Self>,
name: &NSDataAssetName,
) -> Option<Id<Self>>;
#[method_id(@__retain_semantics Init initWithName:bundle:)]
pub unsafe fn initWithName_bundle(
this: Allocated<Self>,
name: &NSDataAssetName,
bundle: &NSBundle,
) -> Option<Id<Self>>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Id<NSDataAssetName>;
#[method_id(@__retain_semantics Other data)]
pub unsafe fn data(&self) -> Id<NSData>;
#[method_id(@__retain_semantics Other typeIdentifier)]
pub unsafe fn typeIdentifier(&self) -> Id<NSString>;
}
);
extern_methods!(
unsafe impl NSDataAsset {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);