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

Joined
Apr 14, 2013
Messages
2
Reaction score
0
Points
1
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
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
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..

CocoaTest.xcodeproj — MainMenu.xib.jpg
 
OP
K
Joined
Apr 14, 2013
Messages
2
Reaction score
0
Points
1
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
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
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..
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top