• 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: NSScrollView with Custom View Not Working...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSScrollView with Custom View Not Working... (From: "Peters, Brandon" <email@hidden>)

  • Prev by Date: NSScrollView with Custom View Not Working...
  • Next by Date: Extending KVO to scalar struct types?
  • Previous by thread: NSScrollView with Custom View Not Working...
  • Next by thread: Extending KVO to scalar struct types?
  • Index(es):
    • Date
    • Thread