mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:28:14 +02:00
39 lines
1.0 KiB
ObjectPascal
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.
|