[fpc-devel] Creating a Cocoa Application

2008-01-06 Thread Felipe Monteiro de Carvalho
Hello, I'm again, trying to do some slow progress on the task of writting a cocoa application in pascal. We have objc runtime headers translated, but there are no examples explaining how to use them. In the past I posted to Apple mailling lists without sucess, so maybe someone could help me

Re: [fpc-devel] Creating a Cocoa Application

2008-01-06 Thread Jonas Maebe
On 06 Jan 2008, at 11:39, Felipe Monteiro de Carvalho wrote: I read the corresponding assembler code, but it's *very* confusing. The order in which CALL's are made is: // NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; callL_objc_getClass$stub call

Re: [fpc-devel] Creating a Cocoa Application

2008-01-06 Thread Felipe Monteiro de Carvalho
thanks, ok, I think I'm almost getting it to work. I translated enougth headers to call NSApplicationLoad and NSRunAlertPanel, but I got stuck at the @string syntax. I tryed to just define PNSString as a generic pointer and pass a PChar to it, but it doesn't work, the application crashes with

Re: [fpc-devel] Creating a Cocoa Application

2008-01-06 Thread Jonas Maebe
On 06 Jan 2008, at 19:03, Felipe Monteiro de Carvalho wrote: I translated enougth headers to call NSApplicationLoad and NSRunAlertPanel, but I got stuck at the @string syntax. I tryed to just define PNSString as a generic pointer and pass a PChar to it, but it doesn't work, the application

Re: [fpc-devel] Creating a Cocoa Application

2008-01-06 Thread Felipe Monteiro de Carvalho
Without this supportyou must create the NSString at run time from a regular constant string. Regarding when you need an autorelease pool and when not (and how to create it), see e.g. http://www.otierney.net/objective-c.html#autorelease Ok, pretty excelent so far =) I can already show the

[fpc-devel] On recasting BORLAND PASCAL FROM SQUARE ONE for Free Pascal

2008-01-06 Thread Jeff Duntemann
Hi everybody-- I figured I would introduce myself, having just signed on to the list here. Some of you may already know me and my work. I've been a Pascal fanatic since I discovered the language in 1978 and wrote heavily about it for many years. I wrote COMPLETE TURBO PASCAL in 1985 and kept

Re: [fpc-devel] On recasting BORLAND PASCAL FROM SQUARE ONE for Free Pascal

2008-01-06 Thread Daniƫl Mantione
Op Sun, 6 Jan 2008, schreef Jeff Duntemann: Hi everybody-- I figured I would introduce myself, having just signed on to the list here. Some of you may already know me and my work. I've been a Pascal fanatic since I discovered the language in 1978 and wrote heavily about it for many years.

Re: [fpc-devel] On recasting BORLAND PASCAL FROM SQUARE ONE for Free Pascal

2008-01-06 Thread Joost van der Sluis
Op zondag 06-01-2008 om 16:26 uur [tijdzone -0700], schreef Jeff Duntemann: I figured I would introduce myself, having just signed on to the list here. Some of you may already know me and my work. Well, I'm happy to say welcome to you here. After all, you're the one who learned Pascal to