use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
pub type NSDataAssetName = NSString;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "AppKit_NSDataAsset")]
pub struct NSDataAsset;
#[cfg(feature = "AppKit_NSDataAsset")]
unsafe impl ClassType for NSDataAsset {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "AppKit_NSDataAsset")]
unsafe impl NSCopying for NSDataAsset {}
#[cfg(feature = "AppKit_NSDataAsset")]
unsafe impl NSObjectProtocol for NSDataAsset {}
extern_methods!(
#[cfg(feature = "AppKit_NSDataAsset")]
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>>;
#[cfg(feature = "Foundation_NSBundle")]
#[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>;
#[cfg(feature = "Foundation_NSData")]
#[method_id(@__retain_semantics Other data)]
pub unsafe fn data(&self) -> Id<NSData>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other typeIdentifier)]
pub unsafe fn typeIdentifier(&self) -> Id<NSString>;
}
);
extern_methods!(
#[cfg(feature = "AppKit_NSDataAsset")]
unsafe impl NSDataAsset {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);