How can I create a NSWindow in code in Delphi for OSX?
Here is what I've tried:
uses Macapi.AppKit,Macapi.CocoaTypes;
...
var
NW : NSWindow;
begin
Nw := TNSWindow.Create;
Nw.initWithContentRect(MakeNSRect(100,100,250,250), NSBorderlessWindowMask, NSBackingStoreBuffered, True);
But on the initWithContentRect line I get a runtime error in PAServer window "_setFrameworkScaleFactor called with non-nil _borderView".
I'm guessing I'm doing it wrong but I've found it hard to find any examples.