• 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: Embedding a custom view within NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding a custom view within NSScrollView


  • Subject: Re: Embedding a custom view within NSScrollView
  • From: Ricky Sharp <email@hidden>
  • Date: Thu, 30 Dec 2004 20:21:19 -0600


On Dec 30, 2004, at 7:14 PM, Tommy Nordgren wrote:

I'm learning cocoa. I've encountered a problem that I don't know how to handle:
I'm creating a custom view class in Interface builder, and dropping a copy inside an
NSScrollView. For some reason the top om my view is not drawn. The missing area is as wide as a scrollbar. The lower and right edges overlaps the area where a scrollbar should be,
and n scrollbars is drawn
Any ideas how I can fix this?

When you say "dropping a copy inside", what exactly are you doing?

In IB, you can just drag over the custom view to your window/panel and size it to what you need. Make sure it is selected, and then select the "Layout | Make subviews of | Scroll View" menu item.

You should then be able to resize the scroll view and set its other attributes.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Embedding a custom view within NSScrollView (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: How to add a URL-tile to the Dock from an Installer?
  • Next by Date: Re: Sorting unicode strings
  • Previous by thread: Embedding a custom view within NSScrollView
  • Next by thread: Displaying Swedish Characters?
  • Index(es):
    • Date
    • Thread