Dude, I can be drunk ... but there is no drawRect method in CAlayers
I think you can use drawInContext:
for actual (gulp) drawing in CALayers, but no one is human enough to do this since WW2.
As for the display, you don't need to call it, it basically updates what you installed using .contents
.
I just use .contents
something like this ...
[self.view setLayer:rearLayer];
[self.view setWantsLayer:YES];
rearLayer.frame = CGRectMake(gameBlah,gameBlah, 1024,768);
rearLayer.contents = (id)loadMacStylePng(@"spaceShip");
, drawInContext:
...
( ... , - ), displayAsNeeded
. ( displayAsNeeded:
, .)