• 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
NSImageView frame and size of images.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView frame and size of images.


  • Subject: NSImageView frame and size of images.
  • From: Oscar Morales Vivó <email@hidden>
  • Date: Fri, 31 Jan 2003 13:17:05 +0100

I'm trying to build a simple program that will generate an image and place it inside an NSImageView.

The (minor) problem I'm having is that calling frame on an NSImageView returns the whole size of it, and when there is a border around the NSImageView I get the size including the border, so I find no way of knowing the maximum size of the image I can place inside the border (without scaling). Of course I can calculate it manually but I'd rather have a more elegant solution.

If anyone can point me to some method that has escaped my attention or to the best course of action in this case, I'll be very thankful.

Thanks in advance:

Oscar Morales.
_______________________________________________
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.

  • Prev by Date: RE: Determining if a NSTextField is selected....
  • Next by Date: Re: initWithFrame not being called?
  • Previous by thread: RE: Determining if a NSTextField is selected....
  • Next by thread: NSCell action on end editing
  • Index(es):
    • Date
    • Thread