Xcode Cocoa Simulator Gone?

Didn't find anything about where the Cocoa simulator went.

I am trying to simulate the UI of an OS X application without building / working.

Is there anyway in Xcode 6 to only download the nib file to interact with?

+3


source to share


3 answers


Switch to the assistant editor. Use the navigation button in the navigation bar to browse the xib files and storyboards in the editor assistant.

enter image description here



UPDATE

To get a preview, you must open the xib file or storyboards in the editor assistants. Use the navigation button in the bottom or right editor, depending on how you stack the editors, to preview the interface.

0


source


in xcode 5 you can simulate your document (editor -> simulate document) this menu item seems to be gone: /

find /Applications/Xcode.app/ -name "*Simulator"

      



export xib to nib file and run:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Interface\ Builder/Plug-ins/CocoaPlugin.ibplugin/Contents/Resources/IBCocoaSimulator.app/Contents/MacOS/IBCocoaSimulator "path to nib-file"

      

+1


source


I got the Preview to work in Xcode 6, but as far as I can tell it is useless because you cannot resize the window. Here's how:

1) In the Project Navigator panel (on the left side of the Xcode window) select MainMenu.xib. This will display the menu bar in Interface Builder in the middle pane.

2) On the Xcode menu bar, click View>Assistant Editor>Show Assistant Editor

. (Or you can open the helper editor by clicking the lock rings icon on the right at the top of the Xcode editor window).

3) There are forward and backward arrows at the top of the Editor Assistant panel. To the right of the arrows is a navigation bar that displays directory and file names separated by right arrows. If you click on the first name in the navigation bar (you can see the automatic slide happen to reveal the first name), the Assistant Editor pop-up menu appears. On the pop-up menu, tap Preview>MainMenu.xib

. If you can't click on the first name in the navigation bar, you won't see a preview selection in the pop-up menu.

If you see a completely blank preview screen (mine actually displays English in the lower right corner), then in the Interface Designer pane, select the icon that represents the MainMenu.xib file - usually the icon at the bottom, the Preview should be displayed in the Editor pane assistant ".

You can also navigate to the MainMenu.xib file from the Assistant Editor pop-up menu and select it. If I do this, the Editor Assistant panel still displays a blank window, but the object icons are aligned to the left. In this case, if I select an icon for MainMenu.xib (for example, I select the icon in the Assistant Editor panel, not in the Interface Builder panel), a preview appears.

0


source







All Articles