[SDL] iOS System Callback
gabomdq at gmail.com
Thu Mar 29 11:46:35 PDT 2012
> You can never create anything if you are worried about APIs changing. They will, and there's nothing you can do about it. Overriding is not a good ideal in a library! The concept of libraries is that they are black boxes. I should note that the big change in iOS (when background processing was added) was the ADDITION of new events. An override would have the exact same problem.
I think overriding the delegate, if possible, is the best solution as
you keep the changes limited to the platform that's got the problem,
and you leave up to the developer what solution to implement. There's
plenty of examples of black box libraries where you have to override
things to make it work, the iOS framework being the first that comes
We can also consider adding an example implementation of these
overrides to help new users get quickly up to speed, or modify the
current delegate to error out if you haven't overriden the required
I do agree that it would be nice to hear what Sam or Ryan think about this!
More information about the SDL