• 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: Not even a portion of a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not even a portion of a window?


  • Subject: Re: Not even a portion of a window?
  • From: j o a r <email@hidden>
  • Date: Fri, 15 Jul 2005 19:26:58 +0200


On 15 jul 2005, at 19.20, Lorenzo wrote:

why can't I get an image of my window?
I get an empty image all the time. What did I miss?

<snip>

[[aWindow contentView] drawRect:imageRect];

Do you have a custom content view subclass that draws something interesting? If not, I would assume that it doesn't draw anything per default, and that would be why your image ends up being empty.


Perhaps you'd rather look at this method:

    -[NSWindow dataWithPDFInsideRect:]

imageData = [image TIFFRepresentation];

I think that you should move this out of the focus-locked area.

j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Not even a portion of a window?
      • From: Lorenzo <email@hidden>
References: 
 >Not even a portion of a window? (From: Lorenzo <email@hidden>)

  • Prev by Date: Not even a portion of a window?
  • Next by Date: Re: Font control in TextView, TextStorage?
  • Previous by thread: Not even a portion of a window?
  • Next by thread: Re: Not even a portion of a window?
  • Index(es):
    • Date
    • Thread