OS X 10.9 SDK Unify GameKit framework with the iOS one

Originator:jacopo
Number:rdar://15857593 Date Originated:20-Jan-2014 12:28 PM
Status:Duplicate of 15128964 (Open) Resolved:
Product:OS X SDK Product Version:OS X SDK 10.9
Classification:Enhancement Reproducible:Not Applicable
 
Summary:
With the release of iOS 7 the GameKit framework has diverged within the two SDK. Like in OS X for initializing an GKScore object is present the initWithCategory: and not the initWithLeaderboardIdentifier: as is in the iOS SDK.
It would be immensely useful if the two framework will be identical in the same manner as the SpriteKit one because much more code in a multi platform game can be reused between the two platform (with the exclusion of the standard UI part of course).

Steps to Reproduce:
1. Create a game project targeting iOS and OS X platform
2. Create an SKScore object sharing the code between the two platform

Expected Results:
The code is a one line [[SKScore alloc] initWithLeaderboardIdentifier:identifier]

Actual Results:
The code must be branched with an #ifdef statement between the iOS 7 version [[SKScore alloc] initWithLeaderboardIdentifier:identifier] and the OS X version [[SKScore alloc] initWithCategory:identifier]

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!