Spaces Support

Discussion in 'Mac Programming' started by davbeck, Jun 13, 2010.

  1. davbeck macrumors regular

    Joined:
    May 16, 2008
    Location:
    Reno, NV
    #1
    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?
     
  2. ritsard macrumors regular

    ritsard

    Joined:
    Jun 18, 2009
    Location:
    SF Bay Area, CA
    #2
    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.
     

Share This Page