Question

How do I get OS X to place NSWindows in a reasonable default tiled-like location? Like when I open TextEdit and create 10 documents, I see all the windows as having the same size, but somebody is smart enough to place them offset from each other a bit. I'm sure that the app isn't doing this itself in code.

(I need a code-based, not NIB/XIB solution).

Was it helpful?

Solution

-[NSWindowController setShouldCascadeWindows: YES] for your window's window controller.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top