Re: NSImageView scrolling
Re: NSImageView scrolling
- Subject: Re: NSImageView scrolling
- From: Jan Van Tol <email@hidden>
- Date: Sat, 28 Sep 2002 17:26:33 -0500
On Saturday, September 28, 2002, at 03:26 PM, Jeremy Dronfield wrote:
I think the best course of action would be for you to do an image app
tutorial. There's one that meets your requirements at
http://macdevcenter.com/pub/ct/37
Choose the Working With Bitmap Images tutorial. As well as the
necessary code, you'll find all the technical details nicely > explained.
Okay, I've almost got this working, but I'm sure I'll figure it out
now. However, the image is still anchored to bottom-left corner. I
compiled the program in the Working With Bitmap Images tutorial, and it
had the same problem. I've looked through the docs for NSImageView,
and all I see is setImageAlignment, which has no effect for me.
Ok, I think I see why it has no effect now. setImageAlignment
specifies where in the frame the image should be located, but since the
frame is calculated to equal the size of the image, this has no effect.
So how do I center the NSImageView in the NSScrollView?
-Jan Van Tol
_______________________________________________
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.