Re: NSScrollView with Custom View Not Working...
Re: NSScrollView with Custom View Not Working...
- Subject: Re: NSScrollView with Custom View Not Working...
- From: Graham Cox <email@hidden>
- Date: Fri, 29 Aug 2014 11:51:24 +1000
On 29 Aug 2014, at 11:22 am, Peters, Brandon <email@hidden> wrote:
> I created a custom NSView that I have embedded within a NSScrollView via Interface Builder (Embed -> Scroll View). Everything seems to get called that should on initialization (using NSLog’s to call out). But, nothing shows up on screen. If I put the custom view on the window without the scroll view, I get the contents to show. Is there an addition step I am missing with using IB to do this? Should I do it programmatically?
Using autolayout or not?
I've found autolayout troublesome with views inside scrollviews, though I've put that down to my own lack of understanding about constraints, etc. If you turn off autolayout for the nib, does it work? If so, there's a strong clue.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden