Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Jonas Maebe
On 31 Jan 2010, at 15:44, Felipe Monteiro de Carvalho wrote: > Do we really need the message identifier in all methods? No, only for new ones. When you override methods, implement methods from protocols, or reintroduce methods via a category, you don't need it. Then the compiler knows the sele

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Felipe Monteiro de Carvalho
Hello, Do we really need the message identifier in all methods? I mean, can't the compiler just guess the name by substituting _ with : ? Then we could use message only for those cases where the string it too long for FPC to handle. thanks, -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Jonas Maebe
On 31 Jan 2010, at 12:47, Michael Van Canneyt wrote: > On Sat, 30 Jan 2010, Jonas Maebe wrote: > >> It means/meant version one of the Objective-C language. The Objective-C >> language evolves semi-independently of the run time (you can write programs >> in Objective-C 2.0 running on i386 and p

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Jonas Maebe
On 31 Jan 2010, at 11:59, Felipe Monteiro de Carvalho wrote: > one more thing, is NSDelegatesAll not being build? I am trying to use > it, but the compiler cannot find the unit. Maybe it is missing from > the makefiles? No. It doesn't even compile. It was added before FPC supported the objccateg

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Michael Van Canneyt
On Sun, 31 Jan 2010, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Does the number 1 imply that it's version 1 of the mode and there may be multiple versions supported at the same time? Or was it for Objective C Runtime Library 1.0 ? (I am almost sure that not)

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > >> Does the number 1 imply that it's version 1 of the mode and there may > >> be multiple versions supported at the same time? Or was it for > >> Objective C Runtime Library 1.0 ? (I am almost sure that not) > > > > It means/meant version one of

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Michael Van Canneyt
On Sat, 30 Jan 2010, Jonas Maebe wrote: On 30 Jan 2010, at 20:08, Felipe Monteiro de Carvalho wrote: One more thing, why is the modeswitch called objectivec1 ? It could be objectivepascal instead. Does the number 1 imply that it's version 1 of the mode and there may be multiple versions su

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-31 Thread Felipe Monteiro de Carvalho
Thanks again, one more thing, is NSDelegatesAll not being build? I am trying to use it, but the compiler cannot find the unit. Maybe it is missing from the makefiles? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-30 Thread Jonas Maebe
On 30 Jan 2010, at 20:08, Felipe Monteiro de Carvalho wrote: > One more thing, why is the modeswitch called objectivec1 ? It could be > objectivepascal instead. > > Does the number 1 imply that it's version 1 of the mode and there may > be multiple versions supported at the same time? Or was it

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-30 Thread Felipe Monteiro de Carvalho
Thanks Jonas, One more thing, why is the modeswitch called objectivec1 ? It could be objectivepascal instead. Does the number 1 imply that it's version 1 of the mode and there may be multiple versions supported at the same time? Or was it for Objective C Runtime Library 1.0 ? (I am almost sure th

Re: [fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-28 Thread Jonas Maebe
On 28 Jan 2010, at 15:26, Felipe Monteiro de Carvalho wrote: I am having trouble with the delphi mode and objective pascal. If I use this defines: {$mode delphi}{$modeswitch objectivec1} Then I get an error in this line: MainWindow.contentView.addSubview(TextField); simpleform.lpr(63,26) E

[fpc-pascal] Problem with Objective Pascal and delphi mode

2010-01-28 Thread Felipe Monteiro de Carvalho
Hello, I am having trouble with the delphi mode and objective pascal. If I use this defines: {$mode delphi}{$modeswitch objectivec1} Then I get an error in this line: MainWindow.contentView.addSubview(TextField); simpleform.lpr(63,26) Error: Unknown record field identifier "ADDSUBVIEW" And