With interface builder for xcode 3 i could rename an object by clicking on its name in the outline view. Is there a way to rename objects in interface builder for xcode 4? Because an outline like this:
View
View
View
View
View
View
View
could be a little more informative.
There are two ways to rename the objects. First, select an object and open the identity inspector. In the Identity section there is a Label text field. Enter the name in the text field.
Second, you can change the object list, which runs along the left side of the editor, from the icon view to the hierarchical view. The hierarchical view shows the document outline, which looks similar to the following screenshot:
Select an object from the object list and press the Return key to rename the object. How you change to the hierarchical view depends on the Xcode 4 version you're using. Newer versions have a button in the lower left corner of the canvas that toggles the icon and hierarchical views. Older versions have a small button at the bottom of the object list.
Related
How can I change the order of my widgets on the top right in Qt Creator / Designer where is says "Object Class"? I tried to drag my widget up by clicking on the name under "Object", and also by clicking on the text under "Class" but neither method worked. I do not want to change the tab order of the widgets, just the order in the designer.
The order is determined firstly by the object hierarchy and secondly by object-name (sorted alphabetically). There is no way to change that structure.
The items in Object Inspector panel really are not draggable.
However, you can use Object Inspector to highlight an item, which placement you want to change. Then you are free to drag this item from the form to any layout in Object Inspector.
I have several table columns embedded in a table view embedded in a scroll view embedded in larger view embedded in a tab view embedded in another view embedded in a window.
When click on the nib file in Xcode 4, the Editor pane shows me the Interface Builder dock in an outline view. Typically, I'd like to set the Cocoa bindings for the table columns.
To get to the table columns, I have to open many levels of subtrees, sequentially. If I click on a column header in the graphical view, and I get lucky, it takes me to the table header. In this case, I only have to open one more level, the table view. When I run my project in the debugger, and come back to the nib file, I have to do it all over again.
Is if there a way to expand all sublevels of the outline view in the IB dock with a single command, or to expand sublevels under a selected level ?
EDIT: Not an answer, but a workaround: double click the nib file to open it in a separate window. The window won't be affected by switching files in the main window. Another feature I was unaware of is Xcode 4's tab capability (Command-T) - works like a tabbed browser.
Hold Command ⌘ Alt while clicking on the disclosure triangle at the appropriate level.
Fast forwarding several years, it looks like with Xcode 11.6, you now hold Option ⌥ key while clicking on the disclosure triangle.
Attached is the screenshot of the UI that I would like to have in my app. When I click on the listitems on the fragment on the left side I see a arrow pointing(question mark in red) on the list item which was clicked, I would like to know how can we achieve this in UI layout. Any special settings to be set?
I was looking at the same feature.
To implement similar, I'd suggest showing an image on the selected item in the list, this would require code rather than Layout XML, It would be controlled by the list fragment when an item is selected. That way you get the visual effect that the two fragments are related via the arrow image.
Did you end up giving it a go for yourself?
I have list of object that I want each item to be rendered with some renderer that include a delete and edit buttons with some text.
What is the best way to make the list of object re-order-able in drag/drop fashion so the user can drag on item on top of another to change the order of the list.
Basically, just use a List, or DataGrid, with an itemRenderer that displays the buttons. Look into the DragEnabled, DragMoveEnabled, and DropEnabled properties for the click and drag sorting.
Look into using itemEditors for the edit functionality.
At the risk of sounding self indulgent, our DataSorter component is designed for sorting lists. It is modeled after the Netflix movie queue / YouTube Playlist editor, but can be easily modified or extended as needed. Free developer editions are available from the web site and you can check out our API Explorer sample.
I am trying to create a matrix of buttons in Interface Builder 3.2.1 but can not find anyway to do it. I read the question and answer posted here:
How to create a NSMatrix of NSImageCell in Interface Builder in 10.6
But following Layout > Embed Objects In, as suggested, I see only View and Scroll View as options, not Matrix. Have I missed something?
Thanks.
I have just tried it on IB 3.2.2: Drag the button on the window, make sure it is selected (only click it once until you can see the eight blue handles around it, not twice!). In this situation the menu Layout -> Embed Objects will have the Matrix option available.
Now you can option-click and drag the lower handle of the button to add more buttons horizontally. Similarly, you can add buttons to the left, to the right or at the top, thereby creating the desired matrix of buttons.
EDIT: This recipe only works when developing for MacOS, not for iPhoneOS. I am not aware of an equivalent of NSMatrix on the iPhone. I guess the UI is simply meant to not include such elements.