• 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: off screen NSView rendering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: off screen NSView rendering


  • Subject: Re: off screen NSView rendering
  • From: Vince DeMarco <email@hidden>
  • Date: Fri, 2 Nov 2001 20:25:52 -0800

On Friday, November 2, 2001, at 06:30 pm, Ruben Westerberg wrote:

Hi all,

Another newbie question.
Is it posible to render a NSView offscreen? I seem to remember that a NSView must be in a window to be of any use.

Also, i wish to add a subview to an existing vew. I have created the sub view and the used [parentView addSubview:mySubview] but it doesn't appear.
Am I missing something here?


Render your picture etc. into an NSImage

alloc an NSImage of the right size

lockFocus on it draw in it, the unlockFocus when you are done drawwing.

vince


References: 
 >off screen NSView rendering (From: Ruben Westerberg <email@hidden>)

  • Prev by Date: Re: Way OT: Picking up a NEXTSTEP workstation
  • Next by Date: Re: Security Bug?
  • Previous by thread: off screen NSView rendering
  • Next by thread: Re: Way OT: Picking up a NEXTSTEP workstation
  • Index(es):
    • Date
    • Thread