• 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
Image Alignment In Scrolled View?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Image Alignment In Scrolled View?
      • From: "Louis C. Sacha" <email@hidden>
    • Re: Image Alignment In Scrolled View?
      • From: John Pannell <email@hidden>
  • Prev by Date: Re: Space bar for key equiv or detecting space bar push?
  • Next by Date: Re: Designing a sheet myself with IB?
  • Previous by thread: Re: Space bar for key equiv or detecting space bar push?
  • Next by thread: Re: Image Alignment In Scrolled View?
  • Index(es):
    • Date
    • Thread