On Apr 14, 2008, at 12:46 PM, Carter R. Harrison wrote:
I'm getting the reference to the context by using:
CGContextRef context = [[NSGraphicsContext currentContext]
graphicsPort];
in my view's initWithFrame: method.
Which isn't guaranteed to be anything in particular (and could in fact
Hi David,
I'm getting the reference to the context by using:
CGContextRef context = [[NSGraphicsContext currentContext]
graphicsPort];
in my view's initWithFrame: method. Based upon what you said, how
would you recommend I draw to a CGLayer prior to the first invocation
of drawRect: (at
On Apr 14, 2008, at 11:56 AM, Carter R. Harrison wrote:
cgback is a CGLayerRef instance variable that I setup when the view
is inited. I use the following line:
cgback = CGLayerCreateWithContext(context, CGSizeMake([self
bounds].size.width, [self bounds].size.height), NULL);
It's my unde
cgback is a CGLayerRef instance variable that I setup when the view is
inited. I use the following line:
cgback = CGLayerCreateWithContext(context, CGSizeMake([self
bounds].size.width, [self bounds].size.height), NULL);
It's my understanding that I do not need to retain cgback with
CFRet
On Apr 13, 2008, at 7:15 AM, Carter R. Harrison wrote:
CGContextRef context = [[NSGraphicsContext currentContext]
graphicsPort];
CGContextDrawLayerInRect(context, CGRectMake([self frame].origin.x,
[self frame].origin.y, [self frame].size.width, [self
frame].size.height), cgback);
cgback is
On Apr 13, 2008, at 07:15, Carter R. Harrison wrote:
CGContextDrawLayerInRect(context, CGRectMake([self frame].origin.x,
[self frame].origin.y, [self frame].size.width, [self
frame].size.height), cgback);
Are you sure you don't mean [self bounds]? The extent of a view in its
drawing coordinate
On Apr 13, 2008, at 07:15, Carter R. Harrison wrote:
CGContextDrawLayerInRect(context, CGRectMake([self frame].origin.x,
[self frame].origin.y, [self frame].size.width, [self
frame].size.height), cgback);
Are you sure you don't mean [self bounds]? The extent of a view in its
drawing coor