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:
sekelsenmat
2008-05-09 19:51:36 +00:00
parent 81763fac6a
commit bc7c85f132
21 changed files with 3184 additions and 887 deletions

View File

@ -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;