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 Dec 10, 2012, at 9:27 PM, Eric Gorr <mail...@ericgorr.net> wrote:

> 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 enough, at least part of the button will redraw correctly. I have 
> confirmed that the frame and bounds of the button remain unchanged.
> 
> If I disable auto-layout, the button will always draw correctly.
> 
> Does anyone have a good explanation of what is going on?
> 
> Thank you,
> Eric
> 


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to