Xcode - How to open more than 1 project in Groups & Files?

Discussion in 'Mac Programming' started by mcbi4kh2, May 8, 2010.

  1. mcbi4kh2 macrumors newbie

    Joined:
    May 8, 2010
    #1
    In the Pane on the left of Xcode I have the list of my Groups & Files with the currently open project.

    How do I add another project to this list? Currently when I go to File -> Open Project and choose a different project it is opened in a new window (or whatever windows are called on macs :) )

    I can split it vertically by clicking the little square box but that just shows me the same project, below.

    Also, how do I stop things opening in a new window when I double click them? I have "open counterparts in same editor" checked.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    I've never seen a way (or wanted) to mix projects in one window. I honestly don't think there is a way to open multiple projects into the same window.
     
  3. mcbi4kh2 thread starter macrumors newbie

    Joined:
    May 8, 2010
    #3
    I find that very surprising, and most inconvenient. Especially with only one screen.

    I use Eclipse mostly, and what I want is something like this.

    Like he has Agenda, ExpC and KeyTopic projects all in the same pane.

    There really is no way to do that?

    What about stopping it from opening a new window on double click?
     
  4. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #4
    Do you mean project or target? Having more than one project open at one time seems rather pointless. Surely you don't work on more than one application at the same time?

    If what you really mean is a target then it is easy, and by target I mean for instance your application and say a library that it depends upon. You just right click on your current project and click "Add New Target". This creates a new subproject with all its own source files which can be built independently of the main project or together in one big build cycle. You can obviously also open it entirely independently of the main project and pass that around to others if you only want them working on that small subsection.
     
  5. mcbi4kh2 thread starter macrumors newbie

    Joined:
    May 8, 2010
    #5
    Yes I mean work on more than one application at once. This is something I do quite a lot, I'm surprised no one else seems to. Oh well, thanks for the answers.
     
  6. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #6
    So why not use Eclipse?

    The command-line tool to build Xcode projects is named 'xcodebuild'. It has a man page.

    Or you can create a makefile and tell Eclipse to use that. Xcode is perfectly able to build projects using makefiles. It's the "External Build System" project template. The default Target is created with /usr/bin/make as the build tool.
     
  7. mcbi4kh2 thread starter macrumors newbie

    Joined:
    May 8, 2010
    #7
    Didn't know that it was possible to do that. Interesting.

    I think I will stick with Xcode though, so far this has been my only gripe.
     
  8. oldio macrumors newbie

    Joined:
    Mar 30, 2008
    Location:
    Montreal, Canada
    #8
    I agree with mcbi4kh2...

    This is a major feature that XCode is missing. So many other IDEs (VS, Eclipse, Codeblocks, etc.) let you handle multiple development projects. I mean how nice is to to modify your shared lib source code and your app using that lib through the same window. Makes you really wonder if the programmers at Apple actually use XCode for development...:(

    One other thing... why can't we have a tab layout for the open source files ?
     
  9. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #9
    You can always use the Xcode Organiser if you want.
     

Share This Page