NSImageView frames
NSImageView frames
- Subject: NSImageView frames
- From: Devon E Bowen <email@hidden>
- Date: Sat, 27 Dec 2003 05:31:20 -0500 (EST)
I'm having trouble with frames around images. In IB I created a GUI with
an image. The image I want to show is exactly 100x100 pixels. With
the frame selected, though, it requires 116x116. It claims it them leaves
110x110 for the image which is odd since I only need 100x100. But if
I try to make it smaller, I lose some of the image. This is without any
scaling of course. I don't really understand this but I assume the frame
is really taking 8 pixels on all sides and I continue.
Anyway, everything looks great in IB. But when I run the app, the frame
disappears. In my drawRect method I am doing:
[checkers compositeToPoint:NSMakePoint(8,8) operation:NSCompositeCopy];
Note the 8x8 offset in order to jump over the area I think is the frame.
And this does seem to work since the image appears where I expect it.
But without the frame.
I tried adding:
[self setImageFrameStyle:NSImageFrameGrayBezel];
To both the start and end of drawRect but it doesn't seem to help. Am I
missing something obvious? Any tips appreciated.
Devon
_______________________________________________
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.