I'm following a walkthrough on designing mac apps using xamarin and c# and at one point the tutorial hands off to xcode's interface builder for creating the UI. I've not used xcode's interface builder before so this is all new to me.
I can see in the tutorial that the version of xcode they're using is different (older) than the one I have, so the tools look a bit different but seem to work the same.
At one point I'm asked to open the Assistant Editor so that I can have a split of the interface builder and the code. According to the tutorial after opening the assistant editor I should see a file open automatically for me:
But when I open the assistant editor in the interface builder not only do I not get my file automatically selected for me, but I can't go to the drop down menu to navigate to it manually.
I know the file in question ViewController.h exists and xcode is aware of it because I can see it in the main code editor window:
But for some reason I can't get it in the assistant editor.
I wouldn't be surprised if this is just due to me not clicking on the right thing or opening the assistant editor incorrectly, but I can't seem to figure out or find an answer as to how I should be opening it.
Any help?
Workaround
So I haven't figured out how to fix the issue, but I did figure out a work around.
I figured that if the assistant editor was just a quick window to the code so you can control drag from the UI Editor to the code then I could probably do the same from the UI Editor window to the actual editor window.
And it works. It's a bit cumbersome but at least it gets me through. If someone has the answer I'm still happy to give a checkmark :)
Related
After upgrading to Xcode 8, i cannot use the Quick Help inspector anymore.
For example, i have a saveNewNote function in my MainViewController.swift file. If i click the function title somewhere in the code, it allows quick scrolling to that function by clicking the link in the attached image. It is very convenient if you have a large number of lines in your code.
Restart Xcode and MacBook did not help.
Is there some settings needed to be changed to be able to use this feature again?
I am new to programming on the Apple Mac. I have followed a programming guide supplied in the Mac Developer Library to program a basic GUI program called TrackMix. In this program you place a textbox, a vertical slider and a button control on the view window. Initially, on dragging the specific object, say the textbox, to the window, a set of alignment guides (dotted blue lines) would automatically appear on the canvas when the object is dragged over it. I dont know what has happened, but now those guides have disappeared when I execute the same action of dragging objects to the window. When the object being dragged is over the window a small green dot, with a plus sign in it, appears on the bottom of the object. I have carefully retraced my steps to be exactly the same as stated in the Developer Library, but still the problem persist. Have I, perhaps, involuntarily changed some Xcode settings or what? I am at the end of my wits! PS: I am using Xcode 7.
You have to toggle the menu item "Editor > Canvas > Snap To Guides" in Storyboard. I hope that helps
I am not sure whether this will be helpful, but I just had the same problem and the only thing which worked was re-installing Xcode (7.3) and trashing all of the Xcode preferences.
Good luck.
I'm using Xcode 6. For some reason the Xcode menu toolbar at the top with everything from File to Navigate and Debug is missing. I've managed without so far but would like to find out if there is an easy fix. Not sure if it was there when I first installed. Appreciate your help.
Try View > Show Toolbar to make it re-appear. If this is not the toolbar you miss, please post a screenshot of your current Xcode interface.
Before:
Okay so I solved this one. It wasn't showing as I had made the window smaller to use alongside online tutorial. When I opened it in full window mode the top toolbar was back.
i cant find how to turn on Assistant Editor in XCode 4.
On tutorial examples i see special button http://i.stack.imgur.com/yUAYe.png
in Editor panel:
http:// i.stack.imgur.com/yspVC.png
But i cant find Editor panel in my copy of XCode:
http://i.stack.imgur.com/uwdnm.png
Something going wrong, i think.
What can i do to switch to split screen mode (assistant editor)?
P.S.: Sorry for links on images instead of real one. And for one broken link, its all about spam prevetion system and lack of reputation.
It looks like you are running Xcode 3, not Xcode 4.
You are not running XC4 in that screen shot.
I want to achieve the GUI represents in the link provided http://www.eclipse.org/gef/.
I want that kind of view as drag and drop.
Is there any resource available to get that kind of screen. I tried the snippets available for Zest already. But my objective is to get the drag and drop of buttons to the editor window as a GUI Builder.
Check UML project for Eclipse, probably you need something like that...
link