• 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: Added Toolbar, now main window can't be resized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Added Toolbar, now main window can't be resized


  • Subject: Re: Added Toolbar, now main window can't be resized
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 17 Dec 2014 04:50:52 +0000

On Dec 16, 2014, at 20:38 , Charles Jenkins <email@hidden> wrote:
>
> whether it’s a bug that should be reported to Apple

From the 10.8 release notes (https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/):

> Auto Layout NSSplitView improvements
>
> In 10.8, NSSplitView properly respects constraints applied to its subviews, such as their minimum view widths. There are also new APIs for controlling the holding priorities, which determine both the NSLayoutPriority at which a split view holds its sizes and also which views change size if the split view itself grows or shrinks.
>
> - (NSLayoutPriority)holdingPriorityForSubviewAtIndex:(NSInteger)subviewIndex;
> - (void)setHoldingPriority:(NSLayoutPriority)priority forSubviewAtIndex:(NSInteger)subviewIndex;
>
> In order to take advantage of these improvements, you must NOT implement any of the following NSSplitViewDelegate methods:
>
> splitView:constrainMinCoordinate:ofSubviewAt:
> splitView:constrainMaxCoordinate:ofSubviewAt:
> splitView:resizeSubviewsWithOldSize:
> splitView:shouldAdjustSizeOfSubview:
>
> These methods are incompatible with auto layout. You can typically achieve their effects and more with auto layout.

I don’t see any warning in the split view delegate documentation, so that’s probably a documentation deficiency.



_______________________________________________

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: Added Toolbar, now main window can't be resized
      • From: Charles Jenkins <email@hidden>
References: 
 >Added Toolbar, now main window can't be resized (From: Charles Jenkins <email@hidden>)
 >Re: Added Toolbar, now main window can't be resized (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: Added Toolbar, now main window can't be resized
  • Next by Date: Re: Issues with applications running on background (Alarm Application)
  • Previous by thread: Re: Added Toolbar, now main window can't be resized
  • Next by thread: Re: Added Toolbar, now main window can't be resized
  • Index(es):
    • Date
    • Thread