Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding a custom view within NSScrollView




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.