Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

Calculator.OSX

Language: Oxygene, Platform: All, Category: Calculator
https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/All/Calculator/Calculator.OSX

AppDelegate.pas

namespace Calculator.OSX;

interface

uses
  AppKit,
  Foundation;

type
  [IBObject]
  AppDelegate = public class(INSApplicationDelegate)
  private
    fMainWindowController: MainWindowController;
  protected
  public
    method applicationDidFinishLaunching(aNotification: NSNotification);
  end;

implementation

method AppDelegate.applicationDidFinishLaunching(aNotification: NSNotification);
begin
  fMainWindowController := new MainWindowController();
  fMainWindowController.showWindow(nil);
end;

end.