• 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: Embedding Custom NSView in an NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding Custom NSView in an NSWindow


  • Subject: Re: Embedding Custom NSView in an NSWindow
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 29 Nov 2005 03:06:38 -0800


On Nov 26, 2005, at 5:48 PM, Robert Spychala wrote:

Hi,

I want to embed a custom NSView subclass (with some widgets in it) into a NSWindow but it's not doing what id like it to to. Everything works ok with a class like WebView when i finish http:// cocoadevcentral.com/articles/000077.php, but not with a Custom View.

If you subclass NSView, you have to implement -drawRect:, or it won't draw anything. If you want it to have subviews, you can't just drop them on a CustomView in IB, you have to send -addSubview: messages.


-jcr


John C. Randolph <email@hidden> (408) 914-0013 Roaming Cocoa Engineer, Available for your projects at great Expense and Inconvenience.



_______________________________________________
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


  • Follow-Ups:
    • Re: Embedding Custom NSView in an NSWindow
      • From: Robert Spychala <email@hidden>
References: 
 >Embedding Custom NSView in an NSWindow (From: Robert Spychala <email@hidden>)

  • Prev by Date: switch button in table header
  • Next by Date: Re: switch button in table header
  • Previous by thread: Embedding Custom NSView in an NSWindow
  • Next by thread: Re: Embedding Custom NSView in an NSWindow
  • Index(es):
    • Date
    • Thread