• 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
NSBox With Colored Background And Border
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBox With Colored Background And Border


  • Subject: NSBox With Colored Background And Border
  • From: Matt Bauer <email@hidden>
  • Date: Sun, 10 Oct 2004 21:13:25 -0500

I'm looking for information on how to color the background of an NSBox while keeping its borders. What I'm looking to obtain in the end is a display area that is similar to that of the calculator application. The problem is every time I call setContentView with my colored view I lose the borders. Well I don't actually lose the borders. My colored view ends up is as large as the NSBox rect and draws over the border. I've also tried adding my colored view to the NSBox using the interface builder and then trying to send it to the back. This unfortunately also displayed over the border. Is there a tutorial or a good NSBox resource out there? Has someone else tried this and willing to share?

Thanks,
Matt Bauer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: bookmarks bar
  • Next by Date: how to save an image with NSBitmapImageRep into a new image file?
  • Previous by thread: Re: Mutating method sent to immutable object
  • Next by thread: how to save an image with NSBitmapImageRep into a new image file?
  • Index(es):
    • Date
    • Thread