Re: [fpc-pascal] Generics in Objective Pascal?

2020-11-02 Thread Ryan Joseph via fpc-pascal
> On Nov 2, 2020, at 1:30 PM, Zoë Peterson via fpc-pascal > wrote: > > I have an NSView subclass with a bunch of fields and methods, and I wanted to > be able to optionally swap that out with a parallel version derived from > NSVisualEffectView without duplicating all of the code. I was

Re: [fpc-pascal] Generics in Objective Pascal?

2020-11-02 Thread Zoë Peterson via fpc-pascal
On 11/2/20 1:01 PM, Ryan Joseph via fpc-pascal wrote: What are you trying to do exactly? There are categories in ObjC but those don't allow fields (they're like helpers in Object Pascal). If you need to share data between a bunch of different NSView subclasses then all you can do is make a