diff options
| author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-01-02 14:50:46 +0000 |
|---|---|---|
| committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-01-02 14:50:46 +0000 |
| commit | 0dfba44e97597764c4493c0afbc928093e8bc3dd (patch) | |
| tree | 674d86e04cbfbff78bdf39f254941f2ddec70478 /packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc | |
| parent | 6a7affca5153b5d4be003ff75c41ffdcae70b301 (diff) | |
| download | fpc-0dfba44e97597764c4493c0afbc928093e8bc3dd.tar.gz | |
* changed syntax of external objcclasses (see wiki/FPC_PasCocoa). Another
change is that it is now also allowed to specify an external name for
formal external class definitions, but if they are later mixed with
regular class definitions the external names have to match.
o because the "external" status of methods is now set while parsing the
class rather than afterwards, some procdir compatibility checks had to
be inlined because they only have to be performed for
* also adapted the syntax for external cppclasses in the same way
* fixed return type of NSObject.retainCount and NSObject.hash
(NSUInteger instead of cint)
* moved "patches" directory from cocoaint/src to cocoaint/utils/cocoa-skel
so they are used by the conversion script when re-parsing the headers
* updated Objective-C header parser script to
o use the new external class syntax
o not write inheritance information for root classes (NSObject, NSProxy)
o use internal translation tables for some conflicting method names that
are named specially in objcbase.pp
and updated parsed headers
* fixed rtl/inc/objcbase.pp and tests to conform to the new external class
syntax
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16684 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc')
| -rw-r--r-- | packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc b/packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc index 0470f3384b..ced95c808c 100644 --- a/packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc +++ b/packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc @@ -1,5 +1,5 @@ { Parsed from Foundation.framework NSScriptCoercionHandler.h } -{ Version: 2.1.2 - Wed Dec 8 10:06:43 CET 2010 } +{ Version: 2.1.4 - Sun Jan 2 15:08:57 CET 2011 } {$ifdef TYPES} @@ -42,17 +42,15 @@ {$define NSSCRIPTCOERCIONHANDLER_PAS_C} { NSScriptCoercionHandler } - NSScriptCoercionHandler = objcclass(NSObject) + NSScriptCoercionHandler = objcclass external (NSObject) private _coercers: id; public - class function alloc: NSScriptCoercionHandler; message 'alloc'; - class function sharedCoercionHandler: NSScriptCoercionHandler; message 'sharedCoercionHandler'; function coerceValue_toClass(value: id; toClass: Pobjc_class): id; message 'coerceValue:toClass:'; procedure registerCoercer_selector_toConvertFromClass_toClass(coercer: id; selector: SEL; fromClass: Pobjc_class; toClass: Pobjc_class); message 'registerCoercer:selector:toConvertFromClass:toClass:'; - end; external; + end; {$endif} {$endif} |
