Re: NSSegmentedControl & NSSegmentStyleSeparated & autolayout

2015-08-27 Thread Arjan van Leeuwen
Hi Thaddeus, On Wed, Aug 26, 2015 at 6:20 PM, Thaddeus Cooper wrote: > I just checked the documentation and did not see NSSegmentStyleSeparated > in the list of NSSegmentStyle enums. Here is the list: > > enum { > NSSegmentStyleAutomatic = 0, > NSSegmentStyleRounded = 1, >

Re: NSSegmentedControl & NSSegmentStyleSeparated & autolayout

2015-08-27 Thread Jacek Oleksy
It is in the documentation, see https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSegmentedControl_Class/#//apple_ref/c/tdef/NSSegmentStyle This is the list for 10.10 (copied from NSSegmentedControl.h): typedef NS_ENUM(NSInteger, NSSegmentStyle) {

Re: NSSegmentedControl & NSSegmentStyleSeparated & autolayout

2015-08-26 Thread Thaddeus Cooper
I just checked the documentation and did not see NSSegmentStyleSeparated in the list of NSSegmentStyle enums. Here is the list: enum { NSSegmentStyleAutomatic = 0, NSSegmentStyleRounded = 1, NSSegmentStyleTexturedRounded = 2, NSSegmentStyleRoundRect = 3, NS

Re: NSSegmentedControl & NSSegmentStyleSeparated & autolayout

2015-08-26 Thread Jacek Oleksy
Nope, I am still getting the exception. J. On Wed, Aug 26, 2015 at 3:31 PM, Ken Thomases wrote: > On Aug 26, 2015, at 7:04 AM, Jacek Oleksy wrote: > >> I want to set NSSegmentStyleSeparated on my NSSegmentedControl >> (managed by autolayout). However, when I create constraints for the >> parent

Re: NSSegmentedControl & NSSegmentStyleSeparated & autolayout

2015-08-26 Thread Ken Thomases
On Aug 26, 2015, at 7:04 AM, Jacek Oleksy wrote: > I want to set NSSegmentStyleSeparated on my NSSegmentedControl > (managed by autolayout). However, when I create constraints for the > parent view, I get an exception: > > Assertion failure in -[NSSegmentedControl ns_widgetType], > /SourceCache/

NSSegmentedControl & NSSegmentStyleSeparated & autolayout

2015-08-26 Thread Jacek Oleksy
Hi All, I want to set NSSegmentStyleSeparated on my NSSegmentedControl (managed by autolayout). However, when I create constraints for the parent view, I get an exception: Assertion failure in -[NSSegmentedControl ns_widgetType], /SourceCache/AppKit/AppKit-1348.17/Layout.subproj/NSUserInterfaceThe