Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the XCode Interface Builder "Document" Section

I understand the "Xcode Specific Label" section.

What I don't understand is the "Notes" section. I've played around with it and can't see any discernable effect.

Can anyone explain this?

enter image description here

like image 788
Matt H. Avatar asked Dec 07 '12 05:12

Matt H.


People also ask

Where is Interface Builder in Xcode?

First, in Xcode, go to the Resources folder from the tree view on the left and select MainMenu. xib . It will open in the main view. This is where you are going to build you UI.

Where is the document outline in Xcode?

If you do not see the Document Outline area in your Xcode workspace, choose Editor, Show Document Outline from the menu bar. You can also click the disclosure arrow in the lower-left corner of the Xcode Editor area.

What is Interface Builder in Swift?

Interface Builder The first is an editor, where you write the Swift code that makes your application run. The second is Interface Builder, which is the part where you lay out the graphical interface of your program—the buttons, toolbars, menus, images, and text that make up how your users interact with your program.

What is main interface in Xcode?

The Main Interface field defines which storyboard file the app loads first upon launch. Because you created the project using the Single View App template, this field is preconfigured to use Main.


1 Answers

It's saving an attributed string with a key of userComments to the storyboard file.

<attributedString key="userComments">
    <fragment content="These are the comments I entered in the notes section of Interface Builder">
        <attributes>
            <font key="NSFont" size="11" name="LucidaGrande"/>
            <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural"/>
        </attributes>
    </fragment>
</attributedString>

I don't know of any practical use of this, though. It would be nice to be able to retrieve this programmatically, though.

like image 137
Rob Avatar answered Nov 15 '22 13:11

Rob