• 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
IB and NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IB and NSImageView


  • Subject: IB and NSImageView
  • From: Laurent Joubert <email@hidden>
  • Date: Sun, 8 Jun 2003 20:36:14 +0200

Hi,

I am totally new with cocoa and I just started playing around with IB. For my first app I tried to build a simple Image Viewer, and I have a NSScrollView containing a NSImageView. I have initially the NSImageView to have just 10px less than the NSScrollView, and I want the image to be shown full scale. So I disabled scaling by setting it to none (in NSImageVIew)

Now I am trying to load a picture (the NSImageView is editable) that is bigger than the initial size, and I want of course the NSImageView to be as big as the image itselft, so that we can scroll around the image...

For some strange reason I never managed to make the NSImageView to have the size of the picture, and since I made the NSImageView initially a little smaller than NSScrollView, I cannot scroll at all...

Isn't there a simple way in IB (I tried to add springs everywhere) so that NSImageView gets the size of its internal image ? I am sure it is easy to do by code, by I was just wondering, it seems so obvious to me that this should be the "normal" behaviour with "no scaling".

Laurent
_______________________________________________
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: IB and NSImageView
      • From: Marco Binder <email@hidden>
    • Re: IB and NSImageView
      • From: publiclook <email@hidden>
  • Prev by Date: Re: NSDistributedNotificationCenter question
  • Next by Date: Re: NSCursor changes not sticking
  • Previous by thread: Can't find plist
  • Next by thread: Re: IB and NSImageView
  • Index(es):
    • Date
    • Thread