Image Alignment In Scrolled View?
Image Alignment In Scrolled View?
- Subject: Image Alignment In Scrolled View?
- From: Jerry LeVan <email@hidden>
- Date: Mon, 14 Jun 2004 19:40:11 -0400
Hi,
I am trying learn how to display images in a scroll view containing
an image view.
1) The most trivial of my problems is that small images load into
the lower left corner of the image view...
I have in the code: [theImageView setImageAlignment:
NSImageAlignTopLeft];
but it or any other choice for alignment seems to have no effect.
2) Manually changing the window size seems to screw up the scrolling...
Don't have a clue here ;(
3) this code
NSLog(@"ScaledImage release cnt(2):%d",[tmpImage retainCount]);
[theImageView setImage:tmpImage];
NSLog(@"ScaledImage release cnt(3):%d",[tmpImage retainCount]);
generates a log file like:
2004-06-14 19:30:53.395 SimpleImage[8274] ScaledImage release cnt(2):1
2004-06-14 19:30:53.396 SimpleImage[8274] ScaledImage release cnt(3):3
doh!
Any suggestions?
Jerry
_______________________________________________
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.