Re: Expose API ?
Re: Expose API ?
- Subject: Re: Expose API ?
- From: Audun Wilhelmsen <email@hidden>
- Date: Tue, 13 Jul 2004 13:39:15 +0200
I'm also looking for a way to do this. What I've done for now, is I've
created an NSView subclass that takes a "snapshot" of a Windows Content
View using NSView's dataWithPDFInsideRect:
The class then replaces the NSWindows contentView with itself.
Then In the drawRect: method, I draw that data, stretching it over the
entire frame of the view.
What this results in is when i make my class take a snapshot of the
window, the contents will be resized when the window is. This doesn't
work very well with a bordered window, but it works fine with a window
without border, which is what I'm working with.
Audun Wilhelmsen
------------------------------------------------------------
BrainByte (brainbyte.digitalhybrid.net)
Norway
On 13. jul. 2004, at 02.36, Jim Vanaria wrote:
| What specifically are you trying to do?
Hi Shawn,
Well, in an all ideal world, it would be quite useful to be able to
take an instance of NSView or NSWindow and scale it smaller or larger
such that the contents within the view scale accordingly.
The best (real world) example I can think (that exists now) of is when
you minimize a window, it shrinks (scales) down to a thumbnail in the
dock. I'd like to be able to use that type of scaling functionality
within my own app(s), but I'd like to be able to control what size the
window shrinks to.
I figured it might be a part of the Expose API (if such a beast exist)
since Expose appears to use this same functionality to scale windows
when you click F9, F10.
Thanks...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.