Re: [fpc-devel]Compilation of Apples Universal Interfaces

2004-08-16 Thread Dr. Rolf Jansen
Nothing more to say about it, since I see we are in total agreement. - I will produce a diff file or the changes in the Universal PInterfaces. - If I ever submit any change to the MacPas wiki page, I will do it as a registered user. - I will update the Xcode-FreePascal site soon with the latest

Re: [fpc-devel]CFSTR, some C guru please

2004-08-16 Thread Dr. Rolf Jansen
Am 16.08.2004 um 13:18 schrieb Jonas Maebe: On 16 aug 2004, at 13:05, Olle Raab wrote: But I doesn't understand it completely : In the C headers, the macros is defined as follows: #define CFSTR(cStr) __CFStringMakeConstantString(cStr "") In the CFString.h of the CoreFoundation framework it's define

Re: [fpc-devel]Compilation of Apples Universal Interfaces

2004-08-16 Thread Olle Raab
04-08-16 10.31, skrev Dr. Rolf Jansen följande: > I am with you to keep the number of changes to the PInterfaces as small > as possible. However, I would like to make a distinction between buggy > or misleading parts of the PInterfaces and those parts which simply > belong to another flavour (pres

Re: [fpc-devel]CFSTR, some C guru please

2004-08-16 Thread Jonas Maebe
On 16 aug 2004, at 13:05, Olle Raab wrote: But I doesn't understand it completely : In the C headers, the macros is defined as follows: #define CFSTR(cStr) __CFStringMakeConstantString(cStr "") In the CFString.h of the CoreFoundation framework it's defined as #define CFSTR(cStr) __CFStringMakeCons

[fpc-devel]CFSTR, some C guru please

2004-08-16 Thread Olle Raab
> In CFStrings.p compared to CFStrings.h the declaration of CFSTR is > simply missing, but many other parts of the UI´s rely on it. So, there > is no other way, the following declaration should be added at line 158: > > function CFSTR(cStr: ConstCStringPtr): CFStringRef; external name > '___CFStri

Re: [fpc-devel]Compilation of Apples Universal Interfaces

2004-08-16 Thread Dr. Rolf Jansen
Am 16.08.2004 um 12:18 schrieb Olle Raab: You might use the tr utility, like this: tr "\r" "\n" | diff ... | tr "\n" "\r" I will give it a try. 3. I write a double-clickable AppleScript application which calls both with the correct arguments in the correct order and which in its later incarnation m

Re: [fpc-devel]Compilation of Apples Universal Interfaces

2004-08-16 Thread Olle Raab
04-08-16 11.58, skrev Dr. Rolf Jansen följande: > Many thanks for the hint. I will try the following: > > 1. I will make a command line Pascal program which converts CR to LF You might use the tr utility, like this: tr "\r" "\n" | diff ... | tr "\n" "\r" > 2. I will make a shell script which a

Re: [fpc-devel]Compilation of Apples Universal Interfaces

2004-08-16 Thread Dr. Rolf Jansen
Many thanks for the hint. I will try the following: 1. I will make a command line Pascal program which converts CR to LF 2. I will make a shell script which applies the diff 3. I write a double-clickable AppleScript application which calls both with the correct arguments in the correct order and

Re: [fpc-devel]Compilation of Apples Universal Interfaces

2004-08-16 Thread Jonas Maebe
On 16 aug 2004, at 10:31, Dr. Rolf Jansen wrote: I aggree with you that it would be great if Apple would allow us to distribute a patched version of the PInterfaces. In the meantime we have to go the diff and patch way. One problem with this may be that it seems that diff (the version distribute

[fpc-devel]Compilation of Apples Universal Interfaces

2004-08-16 Thread Dr. Rolf Jansen
There is an ongoing fruitful private discussion between Olle Raab, Jonas Maebe and me (Rolf Jansen) about the compilation of Apples Universal PInterfaces with Free Pascal. The actual state is, that with relatively minor tweaks the UI´s can be compiled for Classic Mac OS (Olle) and also for Mac

Re: [fpc-devel]Objective-C objects

2004-08-16 Thread Jonas Maebe
On 16 aug 2004, at 01:21, Olle Raab wrote: Afaik the architecture of fpc is such that several object models can coexist. E g there is support for the Delphi classes, old style Turbo objects, and even C++ objects (at least some work is going on). So I think it should be possible to implement yet an

[fpc-devel]Objective-C objects

2004-08-16 Thread Olle Raab
04-08-16 00.16, skrev Dr. Rolf Jansen följande: >> I started to learn Cocoa with Objective-C. I prefer Cocoa over Carbon >> but ObjectPascal over Objective-C. Do you think, that the Object models >> of both languages might be compatible to a certain degree. Is it >> possible to call Objective-C me