I tried to submit a SDL application to the Mac AppStore and it got rejected because SDL cocoa is using a Private (non-public) API. Problematic part is here:
SDL_cocoaevents.m
@implementation NSApplication(SDL)
(void)setRunning
{
_running = 1;
} @end
Symbol _running in NSApplication is private and shouldn’t be used. Any ideas what could I do about this?
I removed the implementation of setRunning and changed the event loop like this:
void Cocoa_PumpEvents(VOID) {
…
while ([NSApp isRunning]) {
TO:
while (true) {
And it seems to work just fine without using Private API
regards,
Pavel KanzelsbergerOn 12.2.2011, at 11:04, Pavel Kanzelsberger wrote:
Hello,
I tried to submit a SDL application to the Mac AppStore and it got rejected because SDL cocoa is using a Private (non-public) API. Problematic part is here:
SDL_cocoaevents.m
@implementation NSApplication(SDL)
(void)setRunning
{
_running = 1;
} @end
Symbol _running in NSApplication is private and shouldn’t be used. Any ideas what could I do about this?
This is fixed, thanks!On Sat, Feb 12, 2011 at 2:04 AM, Pavel Kanzelsberger wrote:
Hello,
I tried to submit a SDL application to the Mac AppStore and it got rejected
because SDL cocoa is using a Private (non-public) API. Problematic part is
here:
SDL_cocoaevents.m
@implementation NSApplication(SDL)
(void)setRunning
{
_running = 1;
} @end
Symbol _running in NSApplication* is private and shouldn’t be used. Any
ideas what could I do about this?*