fpc/tests/test/packages/cocoaint/uw20875a.pp
Jonas Maebe 40a9762ac6 * objcprotocol symbols have to be weak in the non-fragile abi to prevent
conflicts in case a protocol is adopted by classes in multiple object
    files part of the same binary (mantis #20875)

git-svn-id: trunk@19865 -
2011-12-17 12:43:42 +00:00

25 lines
310 B
ObjectPascal

unit uw20875a;
{$MODE Delphi}
{$modeswitch ObjectiveC1}
interface
uses
CocoaAll;
type
TController1 = objcclass(NSWindowController, NSWindowDelegateProtocol)
public
function init : id; override;
end;
implementation
function TController1.init : id;
begin
Result := inherited init;
end;
end.