Re: Simple Auto-Layout problem

2012-12-14 Thread Eric Gorr
Well, I thought this was a simple auto-layout problem. As it turns out, it is a bug. I have filed a bug report - rdar://12888108 However, there is a workaround for this bug. The NSView which is a parent to the NSButton needs to be a subclass of NSView with at least a -drawRect: method. On

Simple Auto-Layout problem

2012-12-10 Thread Eric Gorr
Well, at least it looks like it should be a simple one. I have a sample project at: http://ericgorr.net/cocoadev/autolayout01.zip If you run the app and resize the window to be it's smallest and then larger, the button will not be drawn correctly, if at all. If one makes the window bigger fast