| 1 |
unit UniformTypeIdentifiers; |
| 2 |
|
| 3 |
{$mode delphi} |
| 4 |
{$modeswitch objectivec1} |
| 5 |
|
| 6 |
interface |
| 7 |
|
| 8 |
uses |
| 9 |
SysUtils, CocoaAll; |
| 10 |
|
| 11 |
type |
| 12 |
UTType = objcclass external(NSObject, NSCopyingProtocol, NSSecureCodingProtocol) |
| 13 |
public |
| 14 |
class function typeWithIdentifier(identifier: NSString): id; message 'typeWithIdentifier:'; |
| 15 |
class function typeWithFilenameExtension(filenameExtension: NSString): id; message 'typeWithFilenameExtension:'; |
| 16 |
|
| 17 |
function identifier: NSString; message 'identifier'; |
| 18 |
function conformsToType(type_: UTType): ObjCBOOL; message 'conformsToType:'; |
| 19 |
|
| 20 |
// NSCopyingProtocol |
| 21 |
function copyWithZone(zone: NSZonePtr): id; message 'copyWithZone:'; |
| 22 |
// NSCodingProtocol |
| 23 |
procedure encodeWithCoder(aCoder: NSCoder); message 'encodeWithCoder:'; |
| 24 |
function initWithCoder(aDecoder: NSCoder): id; message 'initWithCoder:'; |
| 25 |
// NSSecureCodingProtocol |
| 26 |
class function supportsSecureCoding: ObjCBOOL; message 'supportsSecureCoding'; |
| 27 |
end; |
| 28 |
|
| 29 |
implementation |
| 30 |
|
| 31 |
end. |