Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5988283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:56:12+00:00 2026-05-22T22:56:12+00:00

I’m following a very basic book tutorial on Mac development. We’re just creating a

  • 0

I’m following a very basic book tutorial on Mac development. We’re just creating a really simple interface. All I’m trying to do is drag a label on to the view, and run it and have that label displayed. However, I’m using the newest version of Xcode, and I’m doing just that-just dragging a label on to the view, typing in some text, saving it, then running it. However, the app window is empty when I run it. Why is my label not appearing? Even any buttons that I’ve dragged are not appearing. Is there something special I have to do in this new Xcode that I’m missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:56:12+00:00Added an answer on May 22, 2026 at 10:56 pm

    Make sure you drag the label, buttons, etc. into a view that you’re putting into a window that you’re ordering in.

    What you’re probably seeing on startup is the window in the main-menu nib. That window, by default, is empty. It will remain so until you explicitly put something into it, either in code (with addSubview: messages to its content view or an existing subview thereof) or in the nib (by adding the label, buttons, etc. to the window’s content view, or an existing subview thereof, instead of another view in another nib).

    If you want to add the label, buttons, etc. to a view in another nib, then you must load that nib and then add the view you get from it as a subview of one of the views in the window. Or, create a window in that nib instead, but you still need to load the nib and make sure that window gets ordered in.


    Also:

    I’m following a very basic book tutorial on Mac development. … I’m doing just that-just dragging a label on to the view, typing in some text, saving it, then running it.

    If the book was written for Interface Builder, then yes, this is something Xcode 4 does differently. Xcode 4 killed off the separate Interface Builder application, integrating nib editing into itself.

    When you hit ⌘R in Interface Builder, that would run the Cocoa Simulator, which would present the interface objects in your nib. That’s what the book (if it was written for Interface Builder) is telling you to do: Hit ⌘R in Interface Builder, not in Xcode.

    In Xcode, pressing ⌘R runs your app. In Xcode 4 and 5, you can simulate the nib by choosing “Simulate Document” from the Editor menu while editing a nib. That will launch the Cocoa Simulator and preview the contents of your nib in it.

    (Also, don’t confuse the Cocoa Simulator in Interface Builder with the iOS Simulator in the iOS SDK. The iOS Simulator is for actually running the app on a Mac rather than an iOS device; the Cocoa Simulator is for previewing nib contents without running the app.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I'm making a simple page using Google Maps API 3. My first. One marker
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.