• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I get a CGContextRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get a CGContextRef?


  • Subject: Re: How do I get a CGContextRef?
  • From: "Henry McGilton (Developer)" <email@hidden>
  • Date: Sat, 22 Nov 2008 19:07:45 -0800


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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How do I get a CGContextRef?
      • From: DKJ <email@hidden>
References: 
 >How do I get a CGContextRef? (From: DKJ <email@hidden>)
 >Re: How do I get a CGContextRef? (From: "Ken Ferry" <email@hidden>)
 >Re: How do I get a CGContextRef? (From: DKJ <email@hidden>)

  • Prev by Date: Re: Facile Core Data Question
  • Next by Date: Re: Facile Core Data Question
  • Previous by thread: Re: How do I get a CGContextRef?
  • Next by thread: Re: How do I get a CGContextRef?
  • Index(es):
    • Date
    • Thread