• 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
NSScrollView confusion!!!!!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView confusion!!!!!!


  • Subject: NSScrollView confusion!!!!!!
  • From: Aliyah Mohamed <email@hidden>
  • Date: Thu, 30 Aug 2001 16:19:57 -0400

Hello,

I am making some alterations on a previously functioning app piece, but have run into a problem.......

I originally had one BigView with 3 subviews (S1, S2, S3).

Today I have been trying to place S2 and S3 within an NSScrollView, and then place that NSScrollView in the BigView. The reason being I would like the information displayed on S1 to always be present, and not scroll out of the user's view.

In IB: I created 2 instances of CustomView, chose their appropriate CustomClass and then grouped them into a ScrollView. I connected each of the CustomViews with their outlet in the BigView.

In the awakeFromNib method in the BigView I did the following:
1. setFrame on the ScrollView
2. BigView: addSubview on the ScrollView
3. S2 and S3: setFrameSize and then setNeedsDisplay:YES

The ScrollView displays with the appropriate size. However, the S2 and S3 do not change from the size they were displayed as in IB.

I am not sure how to get control of the sizing of S2 and S3 from within the BigView class......

AM.


  • Prev by Date: Re: Java Swing and Interface Builder
  • Next by Date: Re: Making multiple windows from the same class
  • Previous by thread: Re: Java Swing and Interface Builder
  • Next by thread: How to communicate with NSSocketPort
  • Index(es):
    • Date
    • Thread