• 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: NSControl objects on a custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSControl objects on a custom view
      • From: Florian Soenens <email@hidden>
References: 
 >NSControl objects on a custom view (From: Florian Soenens <email@hidden>)

  • Prev by Date: Re: dataWithPDFInsideRect and NSPrintOperation
  • Next by Date: NSTrackingArea pending install
  • Previous by thread: NSControl objects on a custom view
  • Next by thread: Re: NSControl objects on a custom view
  • Index(es):
    • Date
    • Thread