• 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: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?


  • Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
  • From: Carlo Gulliani <email@hidden>
  • Date: Thu, 29 Jan 2009 11:29:11 -0800 (PST)

great thanks!!! i made so and it works, moreover i made so, that my keyboard's buttons are works too, but how use Mouse event? I read, that enterFullScreenMode override all keyboard's and mouse's events. My subclass of NSApplication is listening keyboard events, but i also wanna listen Mouse events, because my app use flash file and in full screen mode mouse's event doesn't works



________________________________
From: Alexander Spohr <email@hidden>
To: Carlo Gulliani <email@hidden>
Cc: Cocoa-dev Mailing List <email@hidden>
Sent: Thursday, January 29, 2009 8:31:21 PM
Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

Maybe just use NSView for your task?

- (BOOL)enterFullScreenMode:(NSScreen *)screen withOptions:(NSDictionary*)options


    atze


Am 29.01.2009 um 15:16 schrieb Carlo Gulliani:

> i understood and solved it, but both windows i need for switching between normal mode and full screen mode. I have 2 buttons for switching and the best way to create method which will to create new window, than remove old window and rewrite old window new window, and after removing nev window reference:
>
> BOOL isFullScreen;
> NSWindow *oldWindow;
>
> -(IBAction) changeToFullScreen:(id)sender
> {
> isFullScreen = TRUE;
>
> [self changeMode];
>
> }
>
> -(IBAction) changeToNormalScreen:(id)sender
> {
> isFullScreen = FALSE;
> [self changeMode];
> }
>
> -(void) changeMode
> {
> if (isFullScreen) unsigned int style = NSTitledWindowMask | ...;
> else unsigned int style = NSBorderlessWindowMask;
>
> NSWindow *newWindow = ... // here we're creating new window with styleMask:style...
> [newWindow setContentView:...];
> oldWindow = newWindow;
> [newWindow autorelease];
> }
>
> any ideas?
>
>
>
> ________________________________
> From: Sean McBride <email@hidden>
> To: Carlo Gulliani <email@hidden>; Mike Abdullah <email@hidden>
> Cc: email@hidden
> Sent: Thursday, January 29, 2009 1:19:18 PM
> Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
>
> Carlo Gulliani (email@hidden) on 2009-01-29 7:28 AM said:
>
>> thanks, i'll try it, if i understood correctly, i should "copy" my all
>> subviews to new window, and remove all subviews from old window, but i
>> don't understand how can i save current time in my flash, but if i
>> copied subview i think it will start from 1st frame? can you show me a
>> part of code which add new subview to new window from old?
>
> <http://www.cocoabuilder.com/archive/message/cocoa/2008/5/14/206531>
>
> BTW, please file a bug requesting the ability to change an already-
> visible window to NSBorderlessWindowMask.  It would make these things
> easier for sure.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                        email@hidden
> Mac Software Designer               Montréal, Québec, Canada
>
>
>
> _______________________________________________
>
> 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

---
Alexander Spohr
Freeport & Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



_______________________________________________

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

  • Follow-Ups:
    • Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
      • From: douglas welton <email@hidden>
References: 
 >change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Mike Abdullah <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Mike Abdullah <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: "Sean McBride" <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: -finstrument-functions and program startup
  • Next by Date: Re: NSTask Leaking...
  • Previous by thread: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
  • Next by thread: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
  • Index(es):
    • Date
    • Thread