Re: Getting actual size of NSImage in NSImageView?
Re: Getting actual size of NSImage in NSImageView?
On Tue, Apr 29, 2003 at 03:23:05PM -0700, email@hidden wrote:
>
I'm doing some dragging out of an NSImageView subclass, and I want the
>
"dragImage" to be not the original image that is scaled down to fit
>
inside the NSImageView, but a copy of the image that it the same size
>
as what's displayed. (Otherwise, the original image, which is much
>
bigger, pops up out of seemingly nowhere!)
>
>
I can ask the NSImageView for its size, and size the image to be that
>
still not right.
>
>
Any suggestions for asking the NSImageView, or its NSImage, what size
>
it is *currently* displaying at?
Try this:
<
http://svn.sabi.net/repos/dev/trunk/Cocoa/DockCam/NJRVendingImageView.m>
Works for me (and I really need to release the app it's part of, one
of these days...)
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.