Tracking areas for Close, Zoom and Minimize buttons

Discussion in 'Mac Programming' started by Simplicated, Mar 11, 2011.

  1. Simplicated, Mar 11, 2011
    Last edited: Mar 11, 2011

    Simplicated macrumors 65816

    Simplicated

    Joined:
    Sep 20, 2008
    Location:
    Waterloo, Ontario, Canada
    #1
    Hello,

    I have a NSWindow subclass that resembles the Mac App Store window (the window management buttons moved down a little bit). However, the trackers, which show the X, - and + symbols when you rollover these buttons, stay at the places where they used to be. Is there a way to move them too?

    I have looked up Google Chrome's source on Github, yet I still can't understand how they did it. (And they use undocumented methods, so I think it will be rejected from the App Store?)

    Thanks.
     

    Attached Files:

  2. Blakeasd macrumors 6502a

    Joined:
    Dec 29, 2009
    #2
    If you plan to submit it to the mac app store it will be rejected.
     
  3. Simplicated thread starter macrumors 65816

    Simplicated

    Joined:
    Sep 20, 2008
    Location:
    Waterloo, Ontario, Canada
    #3
    Without implementing Google Chrome's way of moving the tracking area (though I still have no idea how), the app will actually be approved because it uses no private APIs whatsoever. However I still need to move the tracking area, otherwise it'll be frustrating to the users.

    Any help on moving it without breaking the App Store rules? Thanks so much.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    The only supported way I know of mucking around with these buttons is the HITheme API which works on 64-bit but doesn't render the same as the Cocoa version. Plus that API is very rough, but it works.
     

Share This Page