I'm having trouble implementing a CoreSurface frame buffer. I'm using the latest Xcode template in the sticky thread, and I haven't used CoreSurface before.
The code compiles and apparently works, but the CoreSurface will stay black and it will only refresh when I click the home button.

Here's the project:

And here is the source code, all 4 files pasted together:

I create a SurfaceView and add it to the main view, and then set up a timer that fills the pixels and sends setNeedsDispay to the surfaceView, but it stays black. When I quit the app, it animates away with whatever colour it had.

Help will be appreciated