Re: NSWindow and NSView sizes
Re: NSWindow and NSView sizes
- Subject: Re: NSWindow and NSView sizes
- From: email@hidden
- Date: Mon, 15 Apr 2002 23:16:49 +0200
On lundi, avril 15, 2002, at 10:34 , Cyril Godefroy wrote:
Although I looked several times in the doc, I cannot find the way to
add a NSView to a NSWindow that won't automagically scale to the
NSWindow's size.
What I do is:
fsMovieView = [[[QTKitFSView alloc] retain] initWithFrame:fsRect
withParent:self];
...
[fsWindow setBackgroundColor:[NSColor blackColor]];
[fsWindow setLevel:windowLevel];
[fsWindow setContentView: fsMovieView];
...
Of course, my fsRect is not the sameSize as the screen Rect.
How would I do this?
[[fsWindow contentView] addSubview: fsMovieView];
The Graphic Hierarchy is the following one.
NSWindow -+- ContentView -+- View 1
|
+- View 2
The ContentView is the root view which includes another view.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.