Re: Creating drag images from NSView snapshots
Re: Creating drag images from NSView snapshots
- Subject: Re: Creating drag images from NSView snapshots
- From: Dorian Johnson <email@hidden>
- Date: Sat, 30 Jun 2007 21:42:37 -0500
-[NSBitmapImageRep initWithFocusedViewRect:] after [view lockFocus]
(unlock it afterwards). Add that rep to a fresh nsimage. You'll have
to handle the transparency, that gives you a bit for bit copy of the
focused view.
PS: Search directly on http://www.cocoabuilder.com as well as google.
It has much more relevant results.
- Dorian
On Jun 30, 2007, at 9:20 PM, Ken Tozier wrote:
Hi
I have a custom view that I want to have one of those nice
semitransparent snapshots during drags but can't find any info on
how to actually create these snapshots. I'm sure this has been done
a million times but I must not be googling for the correct terms as
most of the hits I'm getting relate to Windows XP/Vista. How do you
do you get a quick snapshot of an NSView?
Thanks in advance
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40dorianjohnson.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden