• 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
Creating an Offscreen NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating an Offscreen NSView


  • Subject: Creating an Offscreen NSView
  • From: Mark Morrill <email@hidden>
  • Date: Fri, 20 May 2005 16:01:40 -0600

Hi all,

Is creating an offscreen NSView as easy as:

	NSView* myOffscreenView = [[NSView alloc] initWithFrame:theFrame];

And is drawing into it as easy as:

	[myOffscreenView drawRect:myDrawRect];

Or getting PDF data from it as easy as:

	NSData* myPDF = [myOffscreenView drawRect:myDrawRect];

This seems to be too easy. Is there a catch? How does the view know not to draw on the screen? How does it allocate a graphics context?

Mark
	

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Creating an Offscreen NSView
      • From: Ali Lalani <email@hidden>
    • Re: Creating an Offscreen NSView
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: binding and tableviwe problem
  • Next by Date: Re: AddressBook-like TextFields?
  • Previous by thread: Re: binding and tableviwe problem
  • Next by thread: Re: Creating an Offscreen NSView
  • Index(es):
    • Date
    • Thread