Re: How do I get a CGContextRef?

2008-11-22 Thread DKJ
On 22-Nov-08, at 19:07 , Henry McGilton (Developer) wrote: That's the standard way to obtain the current context within drawRect OK, I wasn't doing it within drawRect... silly me. I'll give it a try and see what happens. dkj ___ Cocoa-dev ma

Re: How do I get a CGContextRef?

2008-11-22 Thread Henry McGilton (Developer)
On Nov 22, 2008, at 5:48 PM, DKJ wrote: On 22-Nov-08, at 17:40 , Ken Ferry wrote: Take a look here: Thanks for the reference, but I'm doing this for iPhone, and the procedure seems to be different. The compiler doesn't recognise the NSGraphicsContext class. I tried using the UIGraphic

Re: How do I get a CGContextRef?

2008-11-22 Thread Roland King
well where are you calling it? That's the correct function, but only works when there is a graphics context set, and that's only inside drawRect: in a UIView. I wandered through the documentation a little and got reasonably lost, it does talk about NSGraphicsContext in there, but remember a

Re: How do I get a CGContextRef?

2008-11-22 Thread DKJ
On 22-Nov-08, at 17:40 , Ken Ferry wrote: Take a look here: Thanks for the reference, but I'm doing this for iPhone, and the procedure seems to be different. The compiler doesn't recognise the NSGraphicsContext class. I tried using the UIGraphicsGetCurrentContext function, but that doesn

Re: How do I get a CGContextRef?

2008-11-22 Thread Ken Ferry
Hi DKJ, Take a look here: . -Ken On Sat, Nov 22, 2008 at 5:31 PM, DKJ <[EMAIL PROTECTED]> wrote: > The Overview section of CGContext Reference says "You can obtain a graph

How do I get a CGContextRef?

2008-11-22 Thread DKJ
The Overview section of CGContext Reference says "You can obtain a graphics context by using Quartz graphics context creation functions...". But it doesn't say where to find these functions. They don't appear to be listed in CGContext Reference itself, as far as I can see. I know there ar