• 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: Help with offscreen drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with offscreen drawing


  • Subject: Re: Help with offscreen drawing
  • From: Keith Renz <email@hidden>
  • Date: Thu, 15 Aug 2002 10:26:37 -0400

In theory, I want to re-use offscreen windows (I will not release them) to
draw a similar, but slightly different image. I will then overlay the views
and convert the superview into a PDF image. I will then use the various
images for a table column's cell. The table's data source object will return
images. The test works well with an onscreen window, but for some reason it's
not working with an offscreen window.

Keith

-----

On 8/15/02, 9:38 AM, Jan Van Boghout <email@hidden> wrote:

>Why do you use an offscreen window for that? I've only just started
>exploring this myself, but I just use something like the following:
>
>NSImage *anImage;
>
>[anImage lockFocus];
>//do NSBezierpath stuff here
>[anImage unlockFocus];
>
>Works for me, I haven't encountered any problems with it.
>
>Jan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Help : File size questions
  • Next by Date: action cells and outline views
  • Previous by thread: Re: Help with offscreen drawing
  • Next by thread: Setting a class' action
  • Index(es):
    • Date
    • Thread