Recent

Author Topic: CreateNewWindow - what is the cocoa replacement ?  (Read 3558 times)

Gilles

  • New Member
  • *
  • Posts: 37
CreateNewWindow - what is the cocoa replacement ?
« on: June 16, 2018, 05:35:39 pm »
Hello

Well well well : the main Window in Cocoa, ok.
But in my App, ther are many other windows to be opened…
What is the remplacement of CreateNewWindow ? (le nerf de la guerre, les fenêtres, quand même…)

(NB. I miss Carbon)
TurboPascal -> ThinkPascal -> CodeWarrior -> XCode with FPC -> (Well-deserved) Retirement (but not yet, not yet…)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: CreateNewWindow - what is the cocoa replacement ?
« Reply #1 on: June 16, 2018, 05:50:20 pm »
Well well well : the main Window in Cocoa, ok.
But in my App, ther are many other windows to be opened…
What is the remplacement of CreateNewWindow ? (le nerf de la guerre, les fenêtres, quand même…)

initWithContentRect_styleMask_backing_defer method of NSWindow in AppKit framework.

See how it's used in cocoawsforms.pp.

https://developer.apple.com/documentation/appkit/nswindow/1419477-init

Gilles

  • New Member
  • *
  • Posts: 37
Re: CreateNewWindow - what is the cocoa replacement ?
« Reply #2 on: June 17, 2018, 07:25:12 am »
Merci Phil   :)
TurboPascal -> ThinkPascal -> CodeWarrior -> XCode with FPC -> (Well-deserved) Retirement (but not yet, not yet…)

 

TinyPortal © 2005-2018