• 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: Simple Auto-Layout problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Auto-Layout problem


  • Subject: Re: Simple Auto-Layout problem
  • From: Eric Gorr <email@hidden>
  • Date: Fri, 14 Dec 2012 22:58:14 -0500

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 <email@hidden> 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 (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

References: 
 >Simple Auto-Layout problem (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: Scroll Lock button press event (PC keyboard)
  • Next by Date: Re: CALayer UIImage rendered on top of content instead of below
  • Previous by thread: Simple Auto-Layout problem
  • Next by thread: [MEET] CocoaHeadsNYC this Thursday, Dec 13
  • Index(es):
    • Date
    • Thread