mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 00:39:34 +02:00

implemented in Pascal). See http://wiki.freepascal.org/FPC_PasCocoa#Category_declaration for syntax details git-svn-id: trunk@14196 -
36 lines
532 B
ObjectPascal
36 lines
532 B
ObjectPascal
{$mode objfpc}
|
|
{$modeswitch objectivec1}
|
|
|
|
unit uobjc27b;
|
|
|
|
interface
|
|
|
|
uses uobjc27a;
|
|
|
|
type
|
|
tachild = objcclass(ta)
|
|
end;
|
|
|
|
type
|
|
eachild = objccategory(tachild)
|
|
function eachild_categorymethod: longint; message 'eachild_categorymethod';
|
|
end;
|
|
|
|
da = objccategory(ta)
|
|
function da_categorymethod: longint; message 'da_categorymethod';
|
|
end;
|
|
|
|
implementation
|
|
|
|
function eachild.eachild_categorymethod: longint;
|
|
begin
|
|
result:=ca_categorymethod+2;
|
|
end;
|
|
|
|
function da.da_categorymethod: longint;
|
|
begin
|
|
result:=2;
|
|
end;
|
|
|
|
end.
|