SDL 1.3 Cocoa using Private API

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?

regards,–
Pavel Kanzelsberger
Sent with Sparrow

Ok I think I got it fixed.

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 :wink:

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?

regards,

Pavel Kanzelsberger
Sent with Sparrow


Pavel Kanzelsberger


E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633

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?*

regards,

Pavel Kanzelsberger
Sent with Sparrow http://www.sparrowmailapp.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks