Re: NSControl objects on a custom view
Re: NSControl objects on a custom view
- Subject: Re: NSControl objects on a custom view
- From: Jens Alfke <email@hidden>
- Date: Fri, 11 Jun 2010 10:03:39 -0700
On Jun 11, 2010, at 7:04 AM, Florian Soenens wrote:
> When i put default buttons or a NSSearchfield or a NSProgressindicator on top of my custom view, the subitems display a background.
By “on top of”, do you mean they’re subviews of your custom view, or siblings that are just positioned in the same place?
If you make the controls subviews, they should draw correctly. Overlapping sibling views didn’t use to work correctly back in the day; I think they’re supposed to now, but you might be hitting an edge case. I think it’s generally better to make the controls subviews if they’re logically “inside” your view.
—Jens_______________________________________________
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