NSImageView frame and size of images.
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.