• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting actual size of NSImage in NSImageView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting actual size of NSImage in NSImageView?


  • Subject: Re: Getting actual size of NSImage in NSImageView?
  • From: Nicholas Riley <email@hidden>
  • Date: Tue, 29 Apr 2003 17:41:24 -0500
  • Mail-followup-to: email@hidden, email@hidden

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.

References: 
 >Getting actual size of NSImage in NSImageView? (From: email@hidden)

  • Prev by Date: Re: Newbie Build Error
  • Next by Date: Re: Getting actual size of NSImage in NSImageView?
  • Previous by thread: Getting actual size of NSImage in NSImageView?
  • Next by thread: Re: Getting actual size of NSImage in NSImageView?
  • Index(es):
    • Date
    • Thread