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.

Empty window in Cocoa application, controls don't appear.


Post Reply New Thread Subscribe

 
Thread Tools
ksoileau

 
Member Since: Apr 14, 2013
Posts: 2
ksoileau is on a distinguished road

ksoileau is offline
I'm running Xcode 4.6.1 and OS X 10.8.3 on my MacBook. In Xcode, when I create a new Cocoa application, add a control (a Rounded Rect Button, for instance) and then run the application, I get a window but it's empty, no Rounded Rect Button appears. What might I be doing wrong here?

Thanks,
Kerry Soileau
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,433
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
Welcome to Mac-Forums

I'm using the same version of XCode and OS X. Where are you adding the Rounded Rect Button? If through IB, then you want to click on MainMenu.xib and then ensure that on the left side you click on "Window - <your application name>" and add your controls in there. By default you are looking at the "Main Menu" section which allows you create the menu for your application..

Look below..
Attached Images
File Type: jpg CocoaTest.xcodeproj — MainMenu.xib.jpg (48.9 KB, 3 views)

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
ksoileau

 
Member Since: Apr 14, 2013
Posts: 2
ksoileau is on a distinguished road

ksoileau is offline
Quote:
Originally Posted by Raz0rEdge View Post
Welcome to Mac-Forums

I'm using the same version of XCode and OS X. Where are you adding the Rounded Rect Button? If through IB, then you want to click on MainMenu.xib and then ensure that on the left side you click on "Window - <your application name>" and add your controls in there. By default you are looking at the "Main Menu" section which allows you create the menu for your application..

Raz0rEdge: That was it! I was inadvertently dropping the controls in the wrong place!

Thanks very much for your advice...

Kerry
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,433
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
Oh glad you figured it out before my wonderful screenshot showed up.. I haven't done any Cocoa app work, just iOS, so glad I could help..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks

Post Reply New Thread Subscribe


« Note taking app dev | Editing System Information to Bypass System Requirements? »
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

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Lost Window 7, and can not boot from window BeckyYO Running Windows (or anything else) on your Mac 13 08-08-2012 10:54 PM
Window background colors out of control ToddG OS X - Operating System 10 07-22-2008 08:26 PM
Sheets as children of sheets? Fred Gibbons Schweb's Lounge 3 10-27-2006 10:05 AM
OSX noob Isolate Application Window toughcrowd OS X - Operating System 2 06-25-2005 09:10 PM
Custom Internet Application Randomly Freezing rlecjr OS X - Development and Darwin 0 08-27-2004 09:40 AM

All times are GMT -4. The time now is 12:27 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?