• 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
view content not tracking window size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

view content not tracking window size


  • Subject: view content not tracking window size
  • From: N!K <email@hidden>
  • Date: Thu, 25 Sep 2014 19:38:16 -0700

In Xcode 5 OSX, not ios, I have created a custom view and set auto layout constraints so that the custom view's sides stay a fixed distance from the content view's frame. The custom view resizes correctly while dragging the window's corner while running, but the content of the custom view remains fixed in size. Shrinking the window can crop the content, and expanding it provides lots of open space next to the unchanging content.

The content consists of a Bezier path, which is created in initwithframe and executed in drawrect with [path stroke]. NSLog shows that bounds is changing while resizing.

How can I make the content resize along with the view and window? The window, view, and drawing documents explain how to set up a view, but I haven't found any discussion of content tracking the window size.

Thanks,



Nick


_______________________________________________

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


  • Follow-Ups:
    • Re: view content not tracking window size
      • From: Ken Thomases <email@hidden>
    • Re: view content not tracking window size
      • From: email@hidden
    • Re: view content not tracking window size
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSUserDirectory returns nil
  • Next by Date: Re: view content not tracking window size
  • Previous by thread: Re: NSUserDirectory returns nil
  • Next by thread: Re: view content not tracking window size
  • Index(es):
    • Date
    • Thread