• 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: Help: NSScrollView is resizing its documentView down to (0, 0)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help: NSScrollView is resizing its documentView down to (0, 0)


  • Subject: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 05 May 2015 16:36:12 -0700

> On May 5, 2015, at 4:26 PM, Graham Cox <email@hidden> wrote:
>
> I don’t know, but I also find setting up simple constraints baffling. Even the most straightforward cases seem to be really hard to get right.

Glad to know I'm not the only one. It wouldn't be so bad if there were some real documentation I could read — I would love a fat O'Reilly book on serious AppKit and UIKit GUI implementation — but the Xcode docs only skim the surface and are nearly impossible to find anything in.

I was able to get around the resize problem by overriding -resizeWithOldSuperviewSize: to do nothing, so it skips the inherited implementation that destroys the layout. I'm sure this is a terrible kludge, and I'd love to know the real solution, but it works well enough for the demo I need to give on Friday.

—Jens
_______________________________________________

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:
    • Grabbing window - The contents of this window cannot be shared
      • From: Andreas Höschler <email@hidden>
References: 
 >Help: NSScrollView is resizing its documentView down to (0, 0) (From: Jens Alfke <email@hidden>)
 >Re: Help: NSScrollView is resizing its documentView down to (0, 0) (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Issues with implementing WYWIWYG font menu
  • Next by Date: Re: Issues with implementing WYWIWYG font menu
  • Previous by thread: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Next by thread: Grabbing window - The contents of this window cannot be shared
  • Index(es):
    • Date
    • Thread