[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]Cocoa#
From: |
Gopal V |
Subject: |
Re: [DotGNU]Cocoa# |
Date: |
Sun, 12 Oct 2003 03:45:28 -0700 (PDT) |
Hi Rhys & Oscar,
> A simple "IntPtr" would
> be used to represent the actual Objective-C object.
>
> Constructors would call "objc_lookUpClass" and then
> "class_createInstance".
> Methods would call "class_getInstanceMethod"
> followed by "obj_msgSendv". Or
> something like that. It may be possible to do all
> of this in Portable.NET
> now, using the current PInvoke facilities.
Are we implementing a C# based reflection API over
the Objective-C system ?. (which seems a fair enough
first step ?). And writing the generator in C# itself
?.
> Eventually, we could move the "objc-api" stuff
> directly into the runtime
> engine so that it happens automatically when an
> appropriately-marked C# class
> is loaded. The CVM coder would be able to cache
> class pointers and method
> selectors, making the binding more efficient. But
> that will have to wait
> until after I rearrange PInvoke following DotGNU
> 0.1.
Hmmm... rearrange PInvoke ... good .. :)
Gopal
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com