Re: non-movable fullscreen window
Re: non-movable fullscreen window
- Subject: Re: non-movable fullscreen window
- From: douglas welton <email@hidden>
- Date: Wed, 22 Apr 2009 15:42:26 -0400
Hi Praveen,
1) At present (leopard), you can't dynamically change the windows
style from bordered to non-bordered. The style is set at
initialization and you can't change it after that. See the Window
Programming Guide section for "Setting a Window's Appearance"
2) When you say you use the setFullScreen API do you mean the old
Carbon function? Or do you mean using -
enterFullScreenMode:WithOptions: on the window's contentView? This
later option works quite well and I think it is probably what you are
looking for. The documentation has more details
3) In regards to dragging your newly-enlarged window, have you tried
using NSWindow's -setMovableByWindowBackground: method? Check the
documentation, if you still need this method.
regards,
douglas
On Apr 22, 2009, at 9:15 AM, Praveen Innamuri wrote:
Initially I created a window with a title-bar (so, I created a
window with border and resizable/movable properties). However,
depending upon a request, the window should be converted into
fullscreen dynamically (without titlebar, non-resizable, non-movable).
I am trying to set the application into FullScreen manually (as the
setFullScreen API changes the NSWindow handle and it is violating the
rules of my application). I could resize the window to frame of the
screen, but I couldn't find any way to change the window as
'borderless' dynamically. Though I set the MenuBar's visibility to
false, it hides the titlebar, but window still moves when it is
dragged. How can I prevent the window (in full-screen) from being
moved ?
I tried windowWillMove delegate, but is not helpful. Please
suggest any method to prevent window getting moved (when it is being
dragged) ?
Thanks in advance,
Praveen.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden