• 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: NSWindow and NSView sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSWindow and NSView sizes (From: Cyril Godefroy <email@hidden>)

  • Prev by Date: Possible stupid question
  • Next by Date: Re: NSFileManager and aliases
  • Previous by thread: Re: NSWindow and NSView sizes
  • Next by thread: How to use NSUndoManager removeAllActionsForTarget:?
  • Index(es):
    • Date
    • Thread