Xcode 4 Version editor left-to-right - version-control

Right now, Xcode 4's version editor shows my local changes on the left and the latest revision on the right. It seems more logical to have it reversed, so that the later point in time (my local changes) are on the right. Is there a setting somewhere for this?

There's no option except as "webjprgm" described - manually switching them by selecting versions. I believe you'll have to do this each time, so it's not really going to satisfy you.
I feel the same way about the Assistant showing the counterparts. I'd always had a split screen with .h on top and .m on bottom as it made logical sense to me (there's a reason it's called a "header"). It bugs me to no end but there's no option for "assistant editors on top".
File an enhancement request at http://bugreporter.apple.com

Related

Change the layout of an existing GTK2 application

For my daily work I use Xournal to take notes with my ThinkPad X220 Tablet's pen input. The inconvenient thing is that even in full screen there are two toolbars at the top of the screen. It looks like this:
I have the page on roughly 100% actual A4 paper size. There is unused area on the left and right as this is a 16:9 screen. The digitizer is also non-linear on the left and right screen edges, so I like to stay clear of that when writing.
With the current setup I have only so much height. The toolbars could move to the left or right to give more height, like so:
Each icon would be oriented normally, I just did not do that in the quick mock-up.
I cloned the git repository and found a xournal.glade file as well as src/xo-interface.{c,h}. The version of Glade on Fedora 23 complains about the old format of the .glade file so I converted it with gtk-builder-convert xournal.glade xournal-new.glade and was able to open the new file.
My only GUI experience is with Qt and Qt Designer. I looked into the UI widgets and found the layout contains which I can set from “horizontal” to “vertical”. The whole window is contained in a “vbox”. So in the XML code of the original, non-converted xournal.glade file I changed the HORIZONTAL to VERTICAL and vbox to hbox. When I recompile the project with make the UI looks just the same.
I thought that I perhaps have to generate some C code from within Glade but could not find anything. The Makefile apparently did not invoke anything that would convert it to C code.
How can I get the UI change to manifest in the new compilation?
Update 2016-05-15
Now I have a bit more time to dig into this. First I found out that xournal.glade is not really used within the compilation process. Changing anything there did not affect the program. Running strace src/xournal on the compiled version I saw that it did not use any .glade file there. Therefore the UI must be compiled into the program. This step cannot be automatic, I did not find anything in the makefiles.
On Fedora 23, opening xournal.glade results in many errors, deprecation warnings and so on. It took me until today to realize that I can install glade-2 and open that. This worked flawlessly. I could change the sorting order and replaced the layout to flow the other way around. The export feature updated src/xo-interface.c and after compilation I actually saw the changed version:
This is just what I want! Now I would have to see whether there is anything I could do to change this at run-time and make it a feature addition instead of just an incompatible fork.

Eclipse working sets -- how to rename them? Also, can the error-icon be disabled?

After mild frustration with the difficulty to make top-level "plain old folders" within Eclipse for visual-organization purposes, I discovered that the thing I'm after is called a "working set". Hooray! But they don't seem to be rename-able, by any of the apparent avenues (right-clicking on it or using the Configure Working Sets window).
Is that just the way things are, since no one should be so lazy as to refuse making a new working set with the right name and transferring everything over? Or am I missing something obvious?
I also have a more minor question whose answer I already think I know. Can I tell a specific working set not to change its icon to have the "red X" when one of its children has an error? Nothing in the preferences under Debugging suggests to me the ability to turn off the automatic icon-changing. It's a useful feature, but I have a few simple practice projects with very basic errors, and I don't need the visual reminder to "fix" them, especially if they're in my "Practice" working set, whose icon I'd prefer not to change.
To rename a Working Set, you need to get to the dialogue of selecting a Working Set (click on the white down arrow at the top right of the package explorer > Configure Working Sets..), focus on your Working Set and click the "Edit" button. There, you can change the Working Set's name, as well as what's actually included in the Working Set.
There is no way (that I know of) to change the icon display to avoid showing the errors marker.

Files missing in XCode 4 Project Navigator after archiving

I'm currently trying to create version 1.1 of a project I created in XCode 4, but after archiving the files do not appear in the Project Navigator. My initial thought was that I had to clone my repository (git) and thus create a new version in which I could see the
files, but the clone is also missing the files.
I can access the files from the top bar, but that's not really a desirable solution when
working with a big project. The case is the same for another project that I have archived
so I suspect it is supposed to be a feature of XCode 4.
What am I missing here?
(I'm just combining your "nevermind, I found it" comments into an answer, to maintain the SO style, so this question doesn't pop up as needing an answer.)
Check that you're not filtering file names (left column, bottom.)
Also make sure you haven't pressed one of the "show only files with..." toggle buttons (same location, near the search entry.)
Note that these buttons are toggles
Yes. I had to hit the X button with the icon that was blue at the bottom. This corrected my issue for XCODE Version 6.1. Thanks.

Xcode/iPhone Development 6 months in - Annoyances

I've been iPhone programming for 6 months and come from a PC/Java/Eclipse background and still have a few annoyances with Xcode/iPhone programming I wonder are there any shortcuts to.
Is there any way to prevent multiple windows opening all the time in XCode?
a) When you click on the Errors/Warnings in the bottom right of the status bar build errors are shown in separate window. Any way to get these to show in the main editor?
b) Anyway to get debugger to appear in main editor.
I have a big screen iMac and it's still window hell on Macs.
When you come from Alt-Tab the Mac is a nightmare.
2) Anyway to get a toolbar item on the main editor to:
a) Open Console (I know CMD-thingy-R)
b) Open Break points (you have to open Debugger first then breakpoints)
I know there's keyboard shortcuts but I have only left hand free others on the trackball so any keys on right hand side of keyboard are too far.
I know you can add Finder toolbar scripts (just wondering if anyway to extend Xcode).
Are there utilities to extend Xcode? Scripts/Automator/Any Services I can setup to help.
Can you automate Xcode like you can with Windows/ActiveX/VBA
3) Limit lookups using CMD + double click.
If I double click on a variable to find its definition using CMD + double click it shows every occurrence of all variables with that name. (annoying it you name all you maps mapView)
Anyway to get it to limit to the current class or at least order so current class is first.
4) Find doesn't seem to loop backwards if result all above cursor position
I'm in a class and I hit CMD + F for find.
Find box appears.
I enter some text hit return.
It says I have x matches but only back arrow is highlight in Find
But when I hit < it does nothing.
I need to scroll to the top and redo the search.
If the text is both forwards and backwards then both < > are highlighted and it works.
is this a bug or a 'feature'
Missing Eclipse features
I have been looking at the User Script menu but was wondering how powerful they are?
5) any scripts around to generate source from members such as description: #property #synthesize
if I add a new member, run a script will generate #property/#syntesize and release in dealloc
7) any good sites for scripts?
SCM
Im having problems with SCM and Folders on HD under project Classes directory.
You get a library e.g. JSON. It usually comes as a folder. You copy it to the /Classes for your project. /Classes/JSON
I create a Group for the Library in Xcode under Classes group.
Classes
JSON
I drag the files from the folder into xcode into the JSON Group.
I add them to the SCM and icon changes from ? to A
but if I try and commit them it say folder /JSON is not under SCM.
Can you drag a folder into Xcode so that it AND its files get included in SCM?
Anyway to stop Xcode Help from being on top all the time.
I keep feeling like punching it and telling it to get out of the way! :)
I dont mind it open just not in the way once I've finished.
Yes I know I can Ctrl-W
Sites: the main site I use to learn Obj-C are :
stackoverflow.com
Google code Search - tonnes of full apps on here
http://www.iphonedevsdk.com/forum/iphone-sdk-development/
Apple Developers Forums (anyway to get RSS feed to these or is that blasphemy :) )
Safari - 100s of IT book though prob too many to keep up :)
any others?
Any site that gives simple examples for Obj-C/ UIKit
The docs just show the methods but actual examples (Google code search has helped a lot here)
--> 1):
In Xcode -> Preferences -> General, select "All-In-One" for the Layout.
I was used to have only one window and found this mode much better than the default.
Generating #property and #synthesize code.

Xcode's Refactor menu is always disabled

For some reason Xcode's Refactor is always disabled. I used to be able to activate it via selecting a class name and right clicking in the editor to select it. But now no matter what I do, it remains disabled. Any idea what's going on?
Working with Xcode 5, I kept getting "Can't refactor during indexing" when trying to refactor. Rebuilding the index seemed to hang at "Indexing - Waiting for make" forever.
I then noticed that make was already used by another process on my machine (not by Xcode). Shutting this process down enabled Xcode to finally finish indexing
Your project's index might be out of date/corrupt. In the General tab of the Project Settings window, click Rebuild Code Index and wait until it's done.
You can check the progress of the rebuild in the Activity window (Window > Activity).
I just ran into a similar problem in Xcode. I could not refactor anything in the class's .m (implementation file). The only explanation I could come up with is that it was not indexing the file for some reason, and I could not force it to reindex. The only hack that I found that worked was to copy the file to temporary location, remove it from my Xcode project, copy the file from the temp location back to my project's location, and then re-add the file via Xcode.
None of these suggestions work for Xcode 3.2 - the ONLY way is to select the file you want to rename in the left Groups & Files column. THEN highlight the name of the .m or .h in the right code view, then you can right click and select Refactor!
For instance if you're changing the DetailViewController name, highlight the actual DetailViewController.h word in code.
Note, you should also always make sure you've selected the .h file, not the .m
I faced the same thing in Xcode 11. and this worked for me:
I changed iPhone 8 simulator to generic iOS Device and it worked when it is on Generic
I'm new in iOS development,I have met this similar problem.
Xcode:Version 7.1 (7B91b),it looks like Refactor not working:
But when I put my mouse on the red circle point in the following picture,and then the Refactor working.
I think this is a low level mistake,but may be a reference for someone.