Re: Creating drag images from NSView snapshots
Re: Creating drag images from NSView snapshots
- Subject: Re: Creating drag images from NSView snapshots
- From: Ken Tozier <email@hidden>
- Date: Sat, 30 Jun 2007 23:16:35 -0400
On Jun 30, 2007, at 10:42 PM, Dorian Johnson wrote:
-[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.
Perfect! I thought I remembered seeing something like that but only
looked in NSImage.\
Thanks Dorian
_______________________________________________
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