pub trait NSPasteboard: Sized {
Show 31 methods
// Required methods
unsafe fn releaseGlobally(self);
unsafe fn clearContents(self) -> NSInteger;
unsafe fn writeObjects(self, objects: id) -> BOOL;
unsafe fn setData_forType(self, data: id, dataType: id) -> BOOL;
unsafe fn setPropertyList_forType(self, plist: id, dataType: id) -> BOOL;
unsafe fn setString_forType(self, string: id, dataType: id) -> BOOL;
unsafe fn readObjectsForClasses_options(
self,
classArray: id,
options: id
) -> id;
unsafe fn pasteboardItems(self) -> id;
unsafe fn indexOfPasteboardItem(self, pasteboardItem: id) -> NSInteger;
unsafe fn dataForType(self, dataType: id) -> id;
unsafe fn propertyListForType(self, dataType: id) -> id;
unsafe fn stringForType(self, dataType: id) -> id;
unsafe fn availableTypeFromArray(self, types: id) -> id;
unsafe fn canReadItemWithDataConformingToTypes(self, types: id) -> BOOL;
unsafe fn canReadObjectForClasses_options(
self,
classArray: id,
options: id
) -> BOOL;
unsafe fn types(self) -> id;
unsafe fn name(self) -> id;
unsafe fn changeCount(self) -> NSInteger;
unsafe fn declareTypes_owner(self, newTypes: id, newOwner: id) -> NSInteger;
unsafe fn addTypes_owner(self, newTypes: id, newOwner: id) -> NSInteger;
unsafe fn writeFileContents(self, filename: id) -> BOOL;
unsafe fn writeFileWrapper(self, wrapper: id) -> BOOL;
unsafe fn readFileContentsType_toFile(self, _type: id, filename: id) -> id;
unsafe fn readFileWrapper(self) -> id;
// Provided methods
unsafe fn generalPasteboard(_: Self) -> id { ... }
unsafe fn pasteboardByFilteringData_ofType(
_: Self,
data: id,
_type: id
) -> id { ... }
unsafe fn pasteboardByFilteringFile(_: Self, file: id) -> id { ... }
unsafe fn pasteboardByFilteringTypesInPasteboard(_: Self, pboard: id) -> id { ... }
unsafe fn pasteboardWithName(_: Self, name: id) -> id { ... }
unsafe fn pasteboardWithUniqueName(_: Self) -> id { ... }
unsafe fn typesFilterableTo(_: Self, _type: id) -> id { ... }
}