09-30-2010, 10:01 AM #1
Adding a fullscreen window from another project and customising
- Member Since
- Feb 24, 2007
I have limited experience of Xcode and would like to add a window that resizes to fullscreen to my Cocoa application. I came across the following webpage which explains how to design just the kind of window I am looking for and has a downloadable project which just consists of the resizable window:
Cocoa with Love: Animating a window to fullscreen on the Mac
At the end of the article it states that "The whole code is one method in the sample app — an easy copy and paste into any application" but I am still not sure exactly what I need to copy and paste to get the window in my new project.
Also I am trying to work out how to add the following features:
1. set the colour of the background to black
2. set the window to go fullscreen when it is double-clicked
3. add a close button to the window so that it can be closed (it will not be the main window of my application).
Any help to get this working would be appreciated.
NickOS X 10.5.7
2 x 3 GHz Dual-Core Intel Xeon
8 GB RAM
09-30-2010, 03:12 PM #2
- Member Since
- Jun 25, 2005
- On the road
- 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Did you download the project which there are two links on that page for it. The first sentence under the Conclusion heading has the link.
1. See listing 4.4 in this Apple documentation.
2. In that document is the heading "Responding to User Events and Actions". I think that is where you want to start to capture double clicks. Look at the loop code in one of the samples. You like will still have to search for an online explanation.
3. Drag a Round Button to the view in Interface Builder and learn how to alter the color and perhaps other needed attributes. If you look at the inheritance, you'll see that button is a view.CameraTime - Time lapse photography for novice and advanced users.
When asking questions, post the version of your software. You'll receive better answers.
Please post your results to the thread as it is good feedback.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By HelpIMovie9 in forum OS X - Apps and GamesReplies: 1Last Post: 10-14-2012, 07:07 PM
By Thebutchersboy in forum Switcher HangoutReplies: 2Last Post: 09-04-2012, 01:26 AM
By nick_harambee in forum OS X - Development and DarwinReplies: 0Last Post: 10-08-2010, 06:34 AM
By jonyfoz in forum Movies and VideoReplies: 2Last Post: 10-02-2009, 12:35 PM
By djflair1 in forum Switcher HangoutReplies: 1Last Post: 02-20-2008, 10:05 AM