Xcode 4: Finding User Interface Elements
April-04-2011 Filed in: Interface Builder | Xcode
One of Xcode 4′s biggest changes is its integration with Interface Builder. There is no longer a separate Interface Builder application. Select a xib file from the project navigator to create your application’s user interface. You may be wondering where the user interface elements are located in Xcode 4.
They are in the object library. Choose View > Utilities > Object Library to open the object library, which is located in the lower right corner of the project window.

7 Responses to “Xcode 4: Finding User Interface Elements”
Leave a Reply
Powered by WordPress
Hi, I’m having a problem opening the Object Library. Whenever I open Xcode 4, and the file thats first opened (automatically) is not an xib folder, then I get the Object Library. However, if I open Xcode 4 and the file first displayed is a xib folder, I don’t even get the Object Library, even though I have the Utilities bar open. Instead I just simply get Object, which doesn’t contain most of the objects that are in Object Library. For example, square button, split view, tree controller and so on.
When I do open Xcode 4 and I get the Object Library, and when I open an xib folder, the Object Library disappears and instead I am left with the simple Objects. So I was wondering why is that happening and if you can please help me.
When I do the steps: View > Utilities > Object Library, I just simply get the Objects, not Object library.
If you can help me out, then that would be awesome.
Richard,
I have not encountered this problem. When you say you “just simply get Object”, do you mean the menu bar says Object instead of Object Library? If you click the menu, do you get subgroups, like Controls, Data Views, and Objects and Controllers? Does choosing View > Utilities > Object Library change the menu to Object Library? Does clicking a different library in the library selector bar, then clicking the object library button give you Object Library instead of Object?
- When you say you “just simply get Object”, do you mean the menu bar says Object instead of Object Library?
Yes, the menu bar says Object, not Object Library.
– If you click the menu, do you get subgroups, like Controls, Data Views, and Objects and Controllers?
Yes, I get Controls, Data Views, Objects and Controllers, and Windows and Bars. Thats all.
– Does choosing View > Utilities > Object Library change the menu to Object Library?
No, it does not. By doing that, I still get the simple Object menu.
– Does clicking a different library in the library selector bar, then clicking the object library button give you Object Library instead of Object?
No, I still get simply Object.
I have no idea how to fix this. I tried every way, but I cant get Object Library.
But thanks a lot for your reply.
When you select a subgroup, do you get all the elements in that subgroup? As a test, if you select the Layout Views subgroup for a Mac xib file, you should see the following elements: custom view, vertical split view, horizontal split view, scroll view, tab view, box, vertical line, and horizontal line. If you have all the elements in a subgroup, you can at least use the object library.
Does this problem occur if you create a brand new project and select the xib file? If so, there’s something wrong with your Xcode installation.
Try uninstalling and reinstalling Xcode and see if that fixes things. If not, ask your question on Apple’s Xcode mailing list. Apple’s Xcode engineers answer questions on the list. I have a link to Apple’s mailing list on my website. Click the Home link on the site map. On my home page is a Resources link under Xcode Tools Sensei. The link is on the resources page.
I ran into the same problem, “object library” disappears whenever a xib is active , and displays “Objects” . reinstalling didn’t fix the problem unfortunately
HI ALL
I have the same problem here, after reinstalling also problem did not fix .If there are any solution for this ?? If there any pls share !!
Thanks& Regards,
Prashanth R
This is NOT a bug per se. If you start a project for the mac, you get the ‘object library’ list which is much larger than the ‘objects’ list that you get for an ‘ios’ project. The ‘bug’ is that when you first start an existing project, you will sometimes/always ‘incorrectly’ see the ‘mac project’ ‘objects library’ until you click on a file inside your project, at which time the view refreshes and you see the ‘objects’ list for ios and the much larger mac project ‘objects library’ disappears. Very confusing I agree.