Re: Help, How to resize a window on cocoa
Re: Help, How to resize a window on cocoa
- Subject: Re: Help, How to resize a window on cocoa
- From: email@hidden
- Date: Wed, 15 Feb 2006 22:52:10 -0800
Please read: http://developer.apple.com/documentation/Cocoa/
Conceptual/WinPanel/WinPanel.html
And: http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSWindow_index.html
Specifically the method : - setLevel:
With the argument : NSScreenSaverWindowLevel or
NSPopUpMenuWindowLevel I think would be the level to make the window
cover everything.
Get the size of the screen (NSScreen), and set the window to be the
same size
Second, also make sure the window in that mode is a borderless window
if you want to cover every pixel.
Third, NSQuickdrawView is not (according to apple) going to scale in
the future and has been depreciated (Interface Builder release
notes), and you wont get hardware acceleration for your drawing. I
would humbly recommend a normal NSView and use quartz.
~Andre
On 平成 18/02/15, at 21:44, 魏立群(Gordon.Wei) wrote:
Thanks.
I have tried that setFrame can resize my window.
Now I have another problem,that is how to resize my window to a
full screen window?
I have been told that I should hide system menu and dock bar by
myself.But how to do?
Thanks & best regards
----- 原始邮件 -----
发件人: Daniel Jalkut
收件人: gordonstysty
抄送: email@hidden
发送时间: 2006年1月12日 12:25
主题: Re: Help, How to resize a window on cocoa
The method you want to use is "setFrame:" regardless of whether
you're resizing a view or a window.
The best thing would probably be to set your NSQuickDrawView to
autoresize when its superview resizes, then just resize the
window by
the amount that you want the subview to resize.
Daniel
On Jan 11, 2006, at 9:31 PM, gordonstysty wrote:
Hello developers,
I am a new one on cocoa programme, and I met a problem on how
to resize a window on cocoa.I build a cocoa application by use xcode
project wizzard.Also, I added a NSQuickDrawView into this window and
I want to resize this view too.
Any advice is appreciated.
Best regards.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
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
Andre
email@hidden
_______________________________________________
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