FROM : Scott Stevenson
DATE : Tue Mar 04 23:00:59 2008
On Mar 4, 2008, at 1:26 PM, mikevann wrote:
> I was just checking if a window server function existed for this,
> but I'm using NSBitmapRep's initWithFocusedViewRect: which seems to
> work pretty good. Getting the window as PDF had purple squares on
> the top corners. Thanks for the help.
For Leopard apps, you can also use the new functions in CGWindow.h,
such as CGWindowListCreateImage().
The NSWindow/NSView stuff is easier to use, so you probably only want
the CGWindow API if the other stuff doesn't do what you need it to do.
- Scott
DATE : Tue Mar 04 23:00:59 2008
On Mar 4, 2008, at 1:26 PM, mikevann wrote:
> I was just checking if a window server function existed for this,
> but I'm using NSBitmapRep's initWithFocusedViewRect: which seems to
> work pretty good. Getting the window as PDF had purple squares on
> the top corners. Thanks for the help.
For Leopard apps, you can also use the new functions in CGWindow.h,
such as CGWindowListCreateImage().
The NSWindow/NSView stuff is easier to use, so you probably only want
the CGWindow API if the other stuff doesn't do what you need it to do.
- Scott
| Related mails | Author | Date |
|---|---|---|
| mikevann | Feb 29, 20:41 | |
| David Dunham | Feb 29, 21:13 | |
| mikevann | Feb 29, 21:18 | |
| Gregory Weston | Feb 29, 21:54 | |
| David Dunham | Feb 29, 22:54 | |
| mikevann | Mar 2, 18:02 | |
| Gregory Weston | Mar 2, 22:14 | |
| mikevann | Mar 2, 22:18 | |
| Gregory Weston | Mar 3, 22:25 | |
| mikevann | Mar 4, 22:26 | |
| Scott Stevenson | Mar 4, 23:00 |






Cocoa mail archive

