Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

davbeck

macrumors regular
Original poster
The default behavior of NSWindows and spaces is to move to the space the window was first opened in (unless it has been explicitly moved). The correct behavior is to move to the space the window is in only if it is opened and open it in the current space if it is closed. Mail is the only application I have seen that does this correctly. Is there a way to do this in Cocoa?
 
You can control the relationship of windows and space using the setCollectionBehavior and define how you want your window to react to spaces changing around.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.