a↗agentbay.Get AgentBay
My account ▾
Menu
Back to results

setting-up-macos-window

Setting up the macOS window layer when porting a Windows game to Metal. Covers AppDelegate + NSWindow programmatic setup, a CAMetalLayer-backed GameView with CAMetalDisplayLink, GameViewController lifecycle, AppKit notifications routed into the engine via `Engine*` callbacks, keyboard/mouse input replacing WndProc, fullscreen transitions, cursor…

Full publisher description

Setting up the macOS window layer when porting a Windows game to Metal. Covers AppDelegate + NSWindow programmatic setup, a CAMetalLayer-backed GameView with CAMetalDisplayLink, GameViewController lifecycle, AppKit notifications routed into the engine via `Engine*` callbacks, keyboard/mouse input replacing WndProc, fullscreen transitions, cursor visibility and mouse-look confinement, sleep prevention, and per-frame screen state for sizes and EDR. Use whenever the question touches porting a Windows game window to macOS — AppDelegate / GameView / GameViewController setup, replacing WndProc, fullscreen, cursor handling, window resize, or AppKit notification routing.

Source details

Read SKILL.md ↗ · Browse skill folder ↗

apple/game-porting-toolkit

game-porting-skills/skills/setting-up-macos-window/SKILL.md

Pinned revision 4f42344c90be22112f46becc3fb9687f423f2f88

Source checked

Reviewed licence: Apache-2.0
repository

Reviewed publisher revision ↗ · 2026-11-22

This skill page is available in English. Publisher instructions stay in their original language.