Re: Cross-platform toolkit with a Cocoa backend
Re: Cross-platform toolkit with a Cocoa backend
- Subject: Re: Cross-platform toolkit with a Cocoa backend
- From: Ofri Wolfus <email@hidden>
- Date: Thu, 12 Jul 2007 00:44:25 +0300
I have to disagree here. If you can call C functions from Pascal you
can easily call objc_msgSend() and wrap it in your own pascal API. Of
course it'll be much less powerful than ObjC but I see no reason why
it can't be done. After all, ObjC can be implemented purely in a
preprocessor, and you can do by hand what the preprocessor would do
for you. I'm not saying it's fun, nor that it's the right way to go,
but just noting it's possible ;)
Cheers,
- Ofri
- - - - - - - - - - - - - - - - - - -
http://www.dpompa.com
- - - - - - - - - - - - - - - - - - -
On 10/07/2007, at 20:06, Sherm Pendley wrote:
On Jul 10, 2007, at 7:42 AM, Dr. Rolf Jansen wrote:
Rumours are that FreePascal can already access data and methods of
Cocoa objects and it seems that some are thinking loud about
enhancing the Pascal language specification for directly
supporting Objective-C constructs.
This, IMHO, is what would be needed to support Cocoa from FP.
Pascal method calls are static, bound at compile time. But the
Cocoa world revolves around dynamic messages that are resolved at
run time - Pascal would need a new message-sending syntax for the
same reason that C needed one.
Without extending the Pascal language to support dynamic messaging,
FP would be a far better match for a static toolkit like Carbon.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden