How to download a project folder from sourcecode.apple.com? - xcode

If I'm looking at an Apple opensource page like this:
https://opensource.apple.com/source/Chess/
How can I download one of those projects to my hard drive so I can open it in XCode?
The main stumbling block for me is simply downloading one of the root folders (projects).
There is a similar existing question, but it is specific to the "wget" utility (this question is more general) and its best answer only suggests this official Apple OSS github repo, but that does NOT include all the projects contained within opensource.apple.com, for example, it only contains the most recent version of chess, not ANY of the previous ones.
So, on opensource.apple.com, I cannot:
Right-click and select download, because the folders are just links to more HTML, not directly to files.
FTP to the url, because I don't have an FTP app installed on my Mac, and even if I did, I don't know if the Apple site would accommodate this.
Download each and every file one-by-one, recreating the local folder structure manually... because that seems foolish.
And as stated, while it is trivial to download from the Apple OSS github page, it doesn't contain the code I need!
I Googled this and surprisingly can't find anything.
So, is there a way to easily download from sourcecode.apple.com?

It looks like that's an older interface to access the open source code.
I went to https://opensource.apple.com/, clicked on the View Releases button which takes you to https://opensource.apple.com/releases/. There you can browse the separate projects. For example, to get the latest version of Chess, click on macOS, then macOS 13.0, then find Chess-466.4.1. There should be a download link and/or a link to the project on Github.
For instance, all open source projects for macOS 13.0: https://github.com/apple-oss-distributions/distribution-macOS/tree/macos-130.

Related

How to add existing repository to source tree

I have done the following:
1 - checked the Unity forum, 2 - Checked the atlassian website for guides and, 3 - checked the internet, 4 - Asked the aslassian team for updates.
Someone in the unity forum agrees that the guides are a bit old and only meant for mac users. I am a windows user and the guides there no longer matches whatever user interface windows users have. It can't be followed. Does anyone know how to use sourcetree? How to add my existing repository? You may download the latest version to see the user interface because I just downloaded it.
If you're on Windows, you need to make sure that a ".git" folder is already in the same folder. Beware that you might not be able to see it, depending on the settings in Windows. With the exception that nothing is damaged / corrupted, get the sourcetree browser button to point to that folder and it should be able to open.
Note: The requirements to check any of this would be to learn git and git bash and already have knowledge on how to get repositories to github.com. If you do not have this knowledge, it might be difficult to understand the purpose of the ".git" folder.

Working on vb6 project remotely

I don't know if it is possible or not.. I just wanted to work on a vb6 project remotely. For instance, My friend is working on a vb6 project. and I want to work on that project from my computer. But we are only connected to each other via internet. Is it possible to work on a same vb6 project file from local machine and a remote access also?
The same project file? No, it can't be open in two places at once.
But you can do like every other developer in the world and use a version control system. There are lots of free options available online, like Bitbucket, GitHub, and Assembla.
What you do is create an account on one of those sites, upload your code to the website, and then you and your coworker can each check out a copy of the source. Whenever you make a significant change, you upload your changes back to the website, and your coworker can update his local copy with the new changes (or vice versa).
Of course, there are lots of different options for version control systems: Git, Mercurial (Hg), and Subversion (SVN) just to name a few. You'll need to do some research online to compare the advantages and disadvantages of each, and see which one you prefer.
I believe all of the sites I linked to have a "how to" or "getting started" guide that you will probably find rather useful.

Can Xcode ask / react to file changes outside of the IDE?

Is there are means whereby if files are altered outside of Xcode, that a warning in can be shown to ask if you want to refresh the file? This feature is available in Visual Studio, for example.
As a temporary solution, were working on source files in a Dropbox folder.
Although growl notifies us that some files has changed, Xcode doesn't know about these changes.
No, Xcode won't do that, and since there's no support for plugins you're pretty much stuck with that behavior. Some suggestions:
Create a local git repository (Xcode can do this for you when you create the project, I don't know if you can do it once it is created.
Use another IDE, like AppCode (this isn't even a solution, just came to me and I decided to add it).
With a version control system you can see the little 'M' on edited files, browse changes, etc. But since you wrote that this is a temporary solution I bet you already know this.

Create a separate download link in Github

My Github repository has the source code and a .exe file to be downloaded and installed on Windows.
Some of my clients are getting problems because they can't identify the installer on the zip file they download.
Is there a way to create an easy download link with only some specific files of the repo?
You may want to use the API from github
You could also create a website for your clients to mainly download your files.
http://develop.github.com/p/repo.html
Ok, I'm sorry. I just find it now.
So I'll post how I did it so other may find the answer too:
You just have to click on the .exe file and on the right side (a pretty small thing for me) you'll se the option "Raw" which if you click will download the file.
I guess I was a little precipitate.

TFS get latest version with new files

I'm having problems with TFS when adding new files or folders to my solution.
When any other people in the team try to "get latest" it updates every changed file but it doesn't download the new added files!!
If we go to the Source Control explorer, the new files appear as "not downloaded"... and if we force it to download, then we have to include the file in the project in his machine too.
I can't believe this is the normal behavior for TFS (I think this is basic) so I assume we are doing something wrong... Any idea of what's happening??
Thanks in advance ;-)
Have you also checked in the project file to which the added files are related? In Solution Explorer these files will only be available if they are also in the local project file. Also check if the user attempting to download has the project file checked out already.
Update:
From within Solution Explorer you'll only get what's required for the referenced files in the .proj file. For Source Control Explorer yes it should get those files if you've never downloaded them before. Best way to be sure is rather than just do Get Latest (which tries to sync what it understands server side about your local workspace with the server) do a Get Specific Version -> Latest Version. This way you can "force" download of all project files irrespective of existing workspace status.
The hint above did not help in my scenario.
What did do the trick was to check out an old version (with the two overwrite-checkboxes) and get the latest version afterwards (also with the two overwrite-checkboxes).
This is a huge bug in TFS IMO.
I just had the same problem. My co-worker created a new file (with content, not just an empty file). He did a check-in, and everything went well on his end. But the file never got downloaded to my project. I could go into Source control explorer and navigate to the file in question, then do a "get latest version" or "get specific version" on it, but it still didn't appear in my project.
Then my co-worker did some cosmetic changes to the file and did another commit. This time, when I did a simple "get latest version" on the whole project, the file downloaded without a problem.
Check the most voted answer in this thread. This should be the nearest to what you are looking for
Find unadded files in Team Foundation Server

Resources