[MAC] Lion Fullscreen support

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
anarchintosh Offline
Fan
Posts: 550
Joined: Jul 2010
Reputation: 4
Post: #1
Just sayin' this would be sweet Smile

Quote:Full-Screen Apps
Lion’s beautiful full-screen mode is off by default but it takes just one line of code to enable it in your app. Specifically, call [-setCollectionBehavior:] with the NSWindowCollectionBehaviorFullScreenPrimary flag on your main window. (By setting a window’s collection behavior to NSWindowCollectionBehaviorFullScreenAuxiliary, it can be shown on the same space as the fullscreen window; use this for secondary windows.). Update: You can also set the collection behavior in Interface Builder.

A window is taken into or out of fullscreen mode with the -toggleFullScreen: action. The NSWindowDelegate protocol was also extended by several new methods that inform the delegate about the entering and exiting of full-screen mode and allow it to set a custom content size and presentation options for full-screen display. You can also customize the animation into and out of full-screen mode with the following methods:

-window:startCustomAnimationToEnterFullScreenWithDuration:
-window:startCustomAnimationToExitFullScreenWithDuration:
-customWindowsToEnterFullScreenForWindow:
-customWindowsToExitFullScreenForWindow:
The NSApplication instance includes the NSApplicationPresentationFullScreen flag in its -presentationOptions when an app is currently in full-screen mode.

taken from http://oleb.net/blog/2011/07/whats-new-f...on-part-1/
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #2
Those methods don't exist in 10.4SDK, something like this will have to wait until we migrate to a newer SDK which will be after 11.0 release.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
anarchintosh Offline
Fan
Posts: 550
Joined: Jul 2010
Reputation: 4
Post: #3
appreciate the answer davilla
find quote
MaDDoGo Offline
Senior Member
Posts: 242
Joined: Sep 2009
Reputation: 1
Location: Sabadell (Barcelona)
Post: #4
Hi,

any news on this?

Cheers!

[Image: widget]
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,677
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #5
no

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #6
Post Eden plans involve a bump to 10.6 SDK targeting 10.6. The API calls you mention are 10.7 SDK only. We will have to think about special function support once we bump to the newer SDK.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote