• 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: split views, best practices for 10.8?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: split views, best practices for 10.8?


  • Subject: Re: split views, best practices for 10.8?
  • From: Chuck Soper <email@hidden>
  • Date: Sat, 08 Dec 2012 16:19:51 -0800
  • Thread-topic: split views, best practices for 10.8?

Hi Peter,

On 11/27/12 6:33 PM, "Chuck Soper" <email@hidden> wrote:
>On 11/27/12 2:11 PM, "Peter Ammon" <email@hidden> wrote:
>
>>Hi Chuck,
>>
>>Autolayout works well with NSSplitView in 10.8.
>
>Perfect. Thanks for that confirmation.

Does that mean that in 10.8 (and not 10.7) that it's fine to call
setTranslatesAutoresizingMaskIntoConstraints:NO for subviews of
NSSplitView?
And, that NSSplitView won't add constraints that conflict with my subviews?

The "Cocoa Auto Layout Guide" says not to call
setTranslatesAutoresizingMaskIntoConstraints:NO for subviews of
NSSplitView, but I think that's for 10.7 and the statement is no longer
true for 10.8. Is that correct?


I had been attempting to use constraints in a subview of NSTableCellView
(and call setTranslatesAutoresizingMaskIntoConstraints:NO). I was getting
lots of "Unable to simultaneously satisfy constraints" exceptions.
NSTableView was adding NSAutoresizingMaskLayoutConstraint instances that
were conflicting with my subviews. After I read the "Adopting Auto Layout"
section in "Cocoa Auto Layout Guide" this makes sense. The reason I had
not read the "Adopting Auto Layout" section was because I was writing a
new app for 10.8 and thought the section was specifically for adopting
existing code for auto layout.


Thanks,
Chuck

>[snipped out the bulk of my original message]
>
>
>>Hope that helps!
>>-Peter
>
>It helps immensely! Thanks!
>
>Chuck


_______________________________________________

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: split views, best practices for 10.8?
      • From: Peter Ammon <email@hidden>
    • Re: split views, best practices for 10.8?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: How to implement readonly property
  • Next by Date: Re: How to implement readonly property
  • Previous by thread: PDFKit two page display differs from Preview
  • Next by thread: Re: split views, best practices for 10.8?
  • Index(es):
    • Date
    • Thread