Recent

Author Topic: Future of Carbon vs Cocoa?  (Read 15766 times)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2515
    • havefunsoft.com
Future of Carbon vs Cocoa?
« Reply #15 on: March 04, 2008, 10:57:42 am »
Sekel,
i've PM-d a link to the parser. I hope it works fine, Is there anything else I can help for binding to Cocoa?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Future of Carbon vs Cocoa?
« Reply #16 on: March 05, 2008, 12:20:55 am »
Thanks, I think it's a great start =)

About doing something else, well, yes. Most things are correct and done wonderfully, but some aren't. First, we can't have a monolitic output file, that simply won't work because of the interdependencies between the include files.

We need to have 1 output file per file listed on the input file. Or even easier, to simplify, we don't need to have a input file which lists the target files. Just use the input file as the .h file. We can build a script which calls the parser several times to automate this later.

Secondly, the output file needs to be on the format declared here:

http://wiki.lazarus.freepascal.org/index.php/PasCocoa#Implementation_Details

Look at the already partially translated files for inspiration. In theory the parser should give an output which is exactly like the existing partially converted files, but only done automatically. I added the parser to subversion:

http://wiki.lazarus.freepascal.org/index.php/PasCocoa#Subversion

Please submit future modifications of the parser as diff files, or maybe we can give your write access to that directory.

http://wiki.lazarus.freepascal.org/Creating_A_Patch

thanks,

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Future of Carbon vs Cocoa?
« Reply #17 on: March 05, 2008, 12:40:20 am »
Another comment: The source code of the parser lacks adequate comments which explain how it is internally implemented. Copyright and license information are also missing. You can copy that from the examples on subversion and modify.

thanks,

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2515
    • havefunsoft.com
Future of Carbon vs Cocoa?
« Reply #18 on: March 05, 2008, 03:43:41 pm »
thanks, i'll keep work on it.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2515
    • havefunsoft.com
Future of Carbon vs Cocoa?
« Reply #19 on: March 19, 2008, 05:08:37 pm »
Hello,

iPhone SDK has been released. is Freepascal going to compile for iPhone. As far as I know FPC can compile for ARM processors... is there anything else required?

Sekel, please check pm! the parser is updated!
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

 

TinyPortal © 2005-2018