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

Re: NSScrollView problem


  • Subject: Re: NSScrollView problem
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 07 Jan 2014 20:15:30 -0800

On Jan 7, 2014, at 17:14 , James Pengra <email@hidden> wrote:

> 	I'm using Xcode 5.0.2 with OSX10.8.5. When I build a simple OS Application (nonDocument type) and I move an NSScrollView onto a window and then run the program, it builds normally, but it flags a problem that there is a "Misplaced View" and that "Frame for 'Clip View' will be different at run time. The view hierarchy is: Window -> View -> BorderedScrollView -> ClipView -> PlotView -> and 2 Scrollers. I've called the final view PlotView because it's contents would seems to be the part you would see on screen. If I attach a simple label to the PlotView, it does not appear at run time. Further, nothing I try to draw on PlotView appears.

You don’t have a scroll view problem, you have an auto layout problem in your XIB file. Based on the above information, there are probably 2 things going on:

1. You mis-positioned a view relative to its default constraints. That leads to the “frame will be different at run time” message. Use Editor -> Resolve Autolayout Issues to have it fix the frame or the constraints.

2. You don’t have useful or meaning constraints on the label subview, so it’s positioned somewhere outside the visible part of the PlotView. Or it got resized to zero, so there’s nothing to see even if it’s in the right place.

_______________________________________________

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 problem (From: James Pengra <email@hidden>)

  • Prev by Date: Help to debug NSPerformService..
  • Next by Date: Re: Help to debug NSPerformService..
  • Previous by thread: NSScrollView problem
  • Next by thread: Help to debug NSPerformService..
  • Index(es):
    • Date
    • Thread