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

Re: IB and NSImageView


  • Subject: Re: IB and NSImageView
  • From: publiclook <email@hidden>
  • Date: Sun, 8 Jun 2003 18:45:26 -0400

"Cocoa Programming" uses exactly this example as the very first no code needed example in the book. You can download the example without buying the book: http://www.cocoaprogramming.net/Downloads.html

On Sunday, June 8, 2003, at 02:36 PM, Laurent Joubert wrote:

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.
_______________________________________________
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.

References: 
 >IB and NSImageView (From: Laurent Joubert <email@hidden>)

  • Prev by Date: Re: Very newbie question
  • Next by Date: looking for 'ftime' from...
  • Previous by thread: IB and NSImageView
  • Next by thread: Re: IB and NSImageView
  • Index(es):
    • Date
    • Thread