• 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: Best way to get NSImage for NSWindow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to get NSImage for NSWindow?


  • Subject: Re: Best way to get NSImage for NSWindow?
  • From: Daniel Jalkut <email@hidden>
  • Date: Wed, 19 Oct 2005 03:08:07 -0400

Hi Glenn - thanks for the response. I'm not troubled by how to turn the NSView into an NSImage. Rather, I'm concerned about how I get the NSView in the first place. Once I have the NSView, I'm comfortable. The problem is that I have to use an unsupported technique at the moment to get at the "borderView" of the window.

Daniel

On Oct 18, 2005, at 2:33 PM, glenn andreas wrote:

I need to get an NSView of my window, including its frame. At the moment I'm using the undocumented "_borderView" to access the NSWindow's private view. This works great, but I wonder if I'm overlooking an alternate solution that works and is also supported by Apple? I thought about asking for a well-known view, like the zoom button, and then asking for its superview, but that seems more fragile than what I'm doing now.

Perhaps there is some Quartz-level way of getting at the bitmap for an entire window? Any suggestions appreciated.

Daniel



NSWindows dataWithPDFInsideRect: combined with NSImages initWithData:?

_______________________________________________ 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: Best way to get NSImage for NSWindow?
      • From: glenn andreas <email@hidden>
References: 
 >Best way to get NSImage for NSWindow? (From: Daniel Jalkut <email@hidden>)
 >Re: Best way to get NSImage for NSWindow? (From: glenn andreas <email@hidden>)

  • Prev by Date: When did NSPersistentDocument finish loading ?
  • Next by Date: 24-hour default
  • Previous by thread: Re: Best way to get NSImage for NSWindow?
  • Next by thread: Re: Best way to get NSImage for NSWindow?
  • Index(es):
    • Date
    • Thread