fpc/tests/test/tobjc39.pp
Jonas Maebe c6daaa28d0 * enable all Objective-C tests for Darwin/AArch64
git-svn-id: trunk@29945 -
2015-02-23 22:54:24 +00:00

39 lines
1.0 KiB
ObjectPascal

{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm,aarch64 }
{ %opt=norun }
{$mode objfpc}
{$modeswitch objectivec1}
program tobjc39;
uses
uobjc39;
type
UITextInputProtocol = objcprotocol external name 'UITextInput'
required
procedure setInputDelegate(newValue: UITextInputDelegateProtocol); message 'setInputDelegate:';
function inputDelegate: UITextInputDelegateProtocol; message 'inputDelegate';
function tokenizer: UITextInputTokenizerProtocol; message 'tokenizer';
end;
type
UITextInputDelegateProtocol = objcprotocol external name 'UITextInputDelegate'
end;
type
UITextInputTokenizerProtocol = objcprotocol external name 'UITextInputTokenizer'
end;
type
UITextField = objcclass external (UITextInputProtocol)
public
procedure setInputDelegate(newValue: UITextInputDelegateProtocol); message 'setInputDelegate:';
function inputDelegate: UITextInputDelegateProtocol; message 'inputDelegate';
function tokenizer: UITextInputTokenizerProtocol; message 'tokenizer';
end;
begin
end.