views:

156

answers:

1

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).

+5  A: 

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

Graham Lee