discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with autoresize


From: Nicolas SANCHEZ
Subject: problem with autoresize
Date: Mon, 26 Jan 2004 14:52:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

Hello,

I've a NSBrowser in a NSWindow (I don't use Gorm) and I want the browser to resize automatically when the window is resized. In order to do this, I use the code :

theBrowser = [[NSBrowser alloc] init];
[theBrowser setFrame: [[theMainWindow contentView] frame]];
[theBrowser setAutoresizingMask: NSViewWidthSizable ||          
                                 NSViewHeightSizable];
[[theMainWindow contentView] addSubview: theBrowser];

But when I resize the window, the browser's size doesn't change and the browser stay at the bottom right of the window.

What is the mistake ?

I know that I can create a resize (or a name like that) function to resize the browser automatically, but I think it's time loss.

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]