Re: [fpc-pascal] FPC PasCocoa/Differences

2021-03-27 Thread Adriaan van Os via fpc-pascal
Jonas Maebe via fpc-pascal wrote: You are correct. OTOH, it feels kind of useless in general, because "A class extension bears some similarity to a category, but it can only be added to a class for which you have the source code at compile time (the class is compiled at the same time as the

Re: [fpc-pascal] FPC PasCocoa/Differences

2021-03-27 Thread Jonas Maebe via fpc-pascal
On 27/03/2021 19:11, Adriaan van Os via fpc-pascal wrote: > "The only way to add a traditional property—backed by a new instance > variable—to an existing class is to use a class extension, as described > in Class Extensions Extend the Internal Implementation." > > So, the FPC

[fpc-pascal] FPC PasCocoa/Differences

2021-03-27 Thread Adriaan van Os via fpc-pascal
The FPC PasCocoa/Differences wiki writes about ObjC class extensions: "You can use regular (non-external) categories defined in the implementation of a unit instead of class extensions, as the effect will be the same." However,