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 UIGraphicsGetCurrentContext function, but that doesn't work either: I get an "invalid context" error when I use it in CGContextStrokeRect.

Are you saying that this doesn't work:

    CGContextRef context = UIGraphicsGetCurrentContext();

If so there must be something else going on. That's the standard way to
obtain the current context within drawRect

    Cheers,
        . . . . . . . .    Henry


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to