New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Adding a fullscreen window from another project and customising


Post Reply New Thread Subscribe

 
Thread Tools
nick_harambee

 
Member Since: Feb 24, 2007
Posts: 100
nick_harambee is on a distinguished road

nick_harambee is offline
Hi

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.

Thanks

Nick

OS X 10.5.7
Mac Pro
2 x 3 GHz Dual-Core Intel Xeon
8 GB RAM
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Terminal Command to open most recently modified .Numbers file ??? | Reading and displaying iTunes tags »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 01:15 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?