Embedding Custom NSView in an NSWindow
Embedding Custom NSView in an NSWindow
- Subject: Embedding Custom NSView in an NSWindow
- From: Robert Spychala <email@hidden>
- Date: Sat, 26 Nov 2005 20:48:40 -0500
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.
This is what i do (very basic):
1) Subclass NSView and call it NSViewTest
2) generate class, instantiate it and add some widgets to it in IB
designer
3) Drag a CustomView from the IB palette to the NSWindow designer
4) set the CutomView's class to NSViewTest
5) Subclass NSObject and call it MyControllerObject
6) add NSView output and call it viewMyInstance, add NSWindow output
7) generate class files and instantiate it in IB
8) connect the viewMyInstance to NSViewMy in the NSWindow, connect
NSWindow to controller output
I compile and run and see nothing.... I'm under the impression that
no code is necessary in this situation but is this even possible? Or
should i just show the NSViewTest programatically in the NSViewTest
object instance (or MyControllerObject instance)? ... any help would
be appreciated...
I realize I can "make subviews of" groups of widgets, but i wanna see
if similar is possible by instantiating NSViews as well.
thanks very much,
r.S.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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