• 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: NSBox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBox


  • Subject: Re: NSBox
  • From: Daniel Jalkut <email@hidden>
  • Date: Tue, 20 Dec 2005 22:08:04 -0500

Hi Alex - have you tried setContentView? A box behaves very much like a window, with a single contentview as its subview. It's the content view that then contains all the custom items.

Daniel

On Dec 20, 2005, at 9:58 PM, alex gordillo wrote:

I'm having trouble setting a custom view inside of an NSBox. I've used both addSubview: and replaceSubview:with: methods and neither seem to work. I know that the NSBox creates an a new NSView object when it is created and that is where I tried to use the replaceSubview:with: method. I'm getting no errors but the NSBox appears blank when I run my app. What am I missing? Do I need to call some other method(s) before or after those two methods? Any help will be much appreciated.

_______________________________________________
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
References: 
 >NSBox (From: alex gordillo <email@hidden>)

  • Prev by Date: NSBox
  • Next by Date: Re: CoreData - Fast Deletion Of Thousands Of ManagedObjects?
  • Previous by thread: NSBox
  • Next by thread: Launch Services vs. NSWorkspace for app bundle path
  • Index(es):
    • Date
    • Thread