GKGameCenterViewControllerMBS class

Function:
The GKGameCenterViewControllerMBS class aggregates many common Game Center features into a single user interface. Notes:
It replaces GKAchievementViewControllerMBS and GKLeaderboardViewControllerMBS as the preferred way to show Game Center content in your game.

Important: Your application must authenticate a local player before you can use any Game Center classes. If there is no authenticated player, your application receives a GKErrorNotAuthenticated error. For more information on authentication, see Game Center Programming Guide.

To display the Game Center screen, initialize a new GKGameCenterViewController object and set its delegate. Optionally, you can choose to configure the view controller further to specify which content is initially displayed. Then present the view controller. Your delegate is called when the user dismisses the screen.

Your game should pause other activities before presenting the Game Center user interface.

Available on Mac OS X 10.8.2 and newer.
Subclass of the NSViewControllerMBS class.

Indicates that the view controller presents leaderboard content. The leaderboardCategory and leaderboardTimeScope properties affect the appearance of this view state.
Available on Mac OS X 10.8.2 and newer.

Behavior modes

Your application assumes responsibility for closing the popover. AppKit will still close the popover in a limited number of circumstances. For instance, AppKit will attempt to close the popover when the window of its positioningView is closed. The exact interactions in which AppKit will close the popover are not guaranteed. You may consider implementing -cancel: to close the popover when the escape key is pressed.

AppKit will close the popover when the user interacts with user interface elements in the window containing the popover's positioning view. Semi-transient popovers cannot be shown relative to views in other popovers, nor can they be shown relative to views in child windows. The exact interactions that cause semi-transient popovers to close are not specified.

AppKit will close the popover when the user interacts with a user interface element outside the popover. Note that interacting with menus or panels that become key only when needed will not cause a transient popover to close. The exact interactions that will cause transient popovers to close are not specified.