• 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: Auto Layout and Resizable NSViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto Layout and Resizable NSViews


  • Subject: Re: Auto Layout and Resizable NSViews
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 20 Jul 2015 21:15:18 +0000

On Jul 20, 2015, at 13:50 , Gary L. Wade <email@hidden> wrote:
>
> Depending on your design, why not just use an NSSplitView to do all that for you?

Um, before we go API-hog-wild here, we need to rule out the possibility that the OP is just Doing It Wrong™. Because I’m 99.9999% certain that the OP is just Doing It Wrong™:

> On Jul 20, 2015, at 13:30 , Thomas Wetmore <email@hidden> wrote:
>>
>> I would really like to be able to do resizing using a mouse event loop, but have the layout constraints somehow involved. Reading through references for NSView I don’t see how to do this. I guess I am looking for a way from within the event loop to be able to check whether a proposed new frame rectangle for the view obeys the view’s size constraints.

So, he’s resizing the view using setFrame**, which is to say he’s not really using Auto Layout at all. What he apparently wants is *manual* resizing and repositioning with automatic application of *manual* size limits. This is functionality that doesn’t exist in Cocoa, and it’s certainly not Auto Layout.


** Probably. There’s still about 0.0001% of doubt about it.


_______________________________________________

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: Auto Layout and Resizable NSViews
      • From: Thomas Wetmore <email@hidden>
References: 
 >Auto Layout and Resizable NSViews (From: Thomas Wetmore <email@hidden>)
 >Re: Auto Layout and Resizable NSViews (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Re: Auto Layout and Resizable NSViews
  • Next by Date: Re: Drag highlight problems
  • Previous by thread: Re: Auto Layout and Resizable NSViews
  • Next by thread: Re: Auto Layout and Resizable NSViews
  • Index(es):
    • Date
    • Thread