Re: Embedding Custom NSView in an NSWindow
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