You've already forked lazarus-ccr
Improves the PasCocoa bindings. Adds a script to parse appkit. NSWindow and NSButton are already taken from the parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@447 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
{%MainUnit Foundation.pas}
|
||||
{ NSObject.h
|
||||
Copyright (c) 1994-2005, Apple, Inc. All rights reserved.
|
||||
}
|
||||
@ -58,7 +59,7 @@ FOUNDATION_EXPORT unsigned NSExtraRefCount(id object);}
|
||||
constructor CreateWithHandle(aHandle: objc.id);
|
||||
destructor Destroy; override;
|
||||
{ Extra binding functions }
|
||||
function getClass: objc.id; virtual;
|
||||
class function getClass: objc.id; virtual;
|
||||
procedure AddMethods; virtual;
|
||||
{ Class creation methods }
|
||||
procedure AddMethod(aName, aParameters: string; aPointer: Pointer);
|
||||
@ -193,7 +194,7 @@ begin
|
||||
if Handle <> nil then release;
|
||||
end;
|
||||
|
||||
function NSObject.getClass: objc.id;
|
||||
class function NSObject.getClass: objc.id;
|
||||
begin
|
||||
Result := objc_getClass(Str_NSObject);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user