I've found that if I close the default workspace window in Xcode, if I try to open any new files (including by selecting New Window), they all open up as editors, without the full functionality of the workspace window. How can I open a new workspace similar to the one that is created by default when you open a project in Xcode?
I'm pretty sure what you're looking for is:
View menu --> Show Tool Bar
Is that the secret?
A follow up tip: you often want Show Utilities. Particularly when you bring up an interface builder editing session. Cheers!
Open Xcode 4
Go to menubar > File > New > New Workspace...
Drag in files to edit to the left pane of the Xcode window
Click the file in the left pane
Start editing! :)
Related
I tried SceneBuilder 8.3.0 (executable jar) on a RHEL 6.3 but I fail to get it run properly.
First, I get undesired logs on the sceen. Then, closing the splash screen a java.net.UnknownHostException is displayed.
Then the main window cannot be resized. And, when I click on the main bar menu item, the popup menu opens then disappears immediately. When I click on the very top of the menu item - outside the popup menu display - is correctly displayed.
Note that I have no issue of that kind with JavaFX on the same machine.
How to get SceneBuilder work properly?
I have a similar problem with ubuntu 17.04 and gnome 3.
Cant resize window and no menu works. We click, they apear and disapear when we release the mouse button.
HOWEVER,I only have this problem when launching scenebuilder directly.
If called from eclipse, (after installing e(fx)clipse),or from NetBeans scenbuilder opens the fxml file and works properly.
If Scene Builder does not open in eclipse, go to Window | Preferences | JavaFX and set the correct path to your Scene Builder installation.
Then, right click in the fxml file and you should find an option to "open with Scenebuilder".
Hope this works for you.
EDITED ********* in SceneBuilder 8.4.0 the problematic behaviour seems to have disapeared.
From Experience: If you provide your email to get registered, you will not get this issue. This may be a Gluon Policy. Hope this helps somebody facing same issue.
I have created my AppleScript, tested it, saved it as an .app and it works.
Now, how do I set a custom icon for it?
I have done a bit of googling and tried a few different things but cannot get it to work. The app is mainly for me and maybe some people I know to make workflows easier so having a nice little icon makes a huge difference.
Can anyone help with this please?
Basically you need an .icns icon file.
Open your application with right-click > Show Package Contents
Navigate to Contents > Resources
Delete applet.icns
Drag the custom icon file into the Resources folder
Rename the icon file in Resources to applet.icns
To update the icon appearance open and re-save the applet in Script Editor.
This is how I do it:
In Finder, select your icon file.
Get Info (CMD-I) on the file.
Click the icon in the top left corner of the Get Info window.
Copy it via CMD-C.
Now Get Info on your AppleScript file.
Click the icon in the top left corner of the Get Info window.
Paste the icon using CMD-V.
The AppleScript icon should be replaced by the icon copied from the icon file.
A screen recording demonstrating this process can be viewed at this answer from AskDifferent.
Just building into #pipwerks answers: You can also use Drag&Drop!
(Optional) Create your icon online from any image on https://iconverticons.com/online/ and download de .icns file for your icon.
Get Info (CMD-I) on you AppleScript file.
Now Drag&Drop your .icns file into the small icon in the top left corner.
It works and now it's ready to add it to the dock or wherever you want.
On newer systems if the above methods do not work there is another solution.
In Script Editor, after opening our script (.app), choose View -> Show Bundle Contents from the menu (or press cmd +0).
In the panel that will expand on the right (Bundle Info) in the Resources section, right-click the applet.icns file and select delete from the drop-down menu.
Our new icon file with the same name applet.icns drag and drop into the window Resources where you just deleted it.
Save application and voila :-D
Here's another way on newer systems, I'm using macOS 12.1.
Open the new icon image file in Preview and choose File > Export...
Hold down the Option key while selecting "Format" and see a whole bunch of new choices including ICNS.
Save it, drop it in your Resources folder, and you're good to go.
I have a project where a couple of files are in red, In XCode 3 I used to click the file Get Info and change the Path, but I have no idea how to do it in the new XCode 4.
Click on your file, and then open the right side pane (there is a button in the top right corner). There you will see Identity and Type. Under the location drop down there is a small icon of I'm not sure what. If you click it, it lets you choose a file. I think that is what you want.
My method of choice is to just drag in the files from the new location and delete the references to the ones in the old location.
I'm teaching myself iOS programming and am trying to add a Settings Bundle Resource to my Hello World app, following instructions in the iOS Application Programming Guide. The Settings.bundle object is created in my project (with the disclosure triangle) but there are no files inside.
I expected a Root.plist and en.lproj/Root.strings
Am I missing something in my Xcode4 installation or Xcode setup?
Thanks!
If you click on it with the mouse, and choose "Show in Finder", and in Finder click on it and choose "Show Package Contents", you'll see that it's a directory.
(I found the answer at http://www.iphonedevsdk.com/forum/iphone-sdk-development/92361-settings-bundle-corrupted-newly-added-settings-bundle-also-bad-xcode-4-2-a.html )
[quote]
Click on the Settings.bundle file in the left window; from main menu choose View -> Utilities -> Show FileInspector. Then change fileType to "applicationBundle" -- the two missing files will show under Settings.bundle.
[/quote]
(FileInspector is the right column (to the right from the central view(s)), the tab with an icon showing a page with a paper-clip in the corner)
Just for completeness, this was fixed in a newer version of Xcode. I'll remember to include versions numbers next time.
Since a project can have hundreds of files inside dozens of directories (filters) shown on the "Project Navigator" panel, sometimes it's getting difficult to seek the file which is currently opened in the Editor (for example, when I jump from file to file via "CMD + clicking", etc).
Is there a way to automatically select currently opened file on the "Project Navigator" panel? I.e., automatically expand the directories (filters) and select the file there as I would have clicked on it? Maybe there's a shortcut or something?
Thanks.
The keyboard shortcut is ⌘-shift-J
Right-click the file in the editor and choose Reveal in Project Navigator.
Another option is to Right click anywhere within the Editor pane (with the source code) -> Navigate -> Reveal in Project Navigator.