• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XCode, Subversion and Nib files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode, Subversion and Nib files


  • Subject: Re: XCode, Subversion and Nib files
  • From: Mike Kobb <email@hidden>
  • Date: Wed, 26 Jul 2006 22:22:37 -0700

Hi James,

Thanks for your reply!  (I'll have to check out your book!)

When you localized your first file, you created a new local folder (probably English.lproj), so you went from a directory structure of

    MainMenu.nib

to

    English.lproj/
        MainMenu.nib
    French.lproj/
        MainMenu.nib
    ...

In fact, when it was first added, it was already inside English.lproj. So, at least that didn't get moved. I never added a localized file before that, so I have a feeling that the English.lproj directory was part of the project template I used. (Strange that it wouldn't be en.lproj, isn't it? Since that's what Apple's own docs say that we should be using...)


Xcode doesn't have the new folders (English.lproj, French.lproj, ...) under source control. You'll need to the add those manually

    cd <your resource directory>
    svn delete MainMenu.nib
    svn add English.lproj
    svn add French.lproj
    ...

Okay.

That's because Xcode won't add folders, or any files inside a folder that isn't already in source control. (Any file or folder that isn't in source control gets a '?'.)

Well, that's what I would have thought, but in fact, none of these new nibs has a '?'. They ALL have an empty SCM column (which is supposed to indicate "in SCM and up to date" -- very poor UI in my opinion, because it's totally ambiguous when there are items for which SCM is not applicable, like the frameworks and such).


Once you add the enclosing folder using the command line tool, you can then use the SCM commands in Xcode to add files. Although to be honest, if you're adding a folder to source control it's usually easiest to use the add and command and get all of the files it contains at the same time.

Makes sense.

Technical nit-pick: NIB file are, of course, packages which are folders as far as source control is concerned. Xcode does know enough about packages to add a directory to SCM when you add a NIB, but not a NIB inside a folder that isn't yet under source control.

I would certainly have hoped that it would not just fail silently, though. That's pretty poor. Even if it just said "Hey, sorry, I don't really know how to cope with folders" that would have been something.


Thanks again,
--Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: XCode, Subversion and Nib files
      • From: Andreas Mayer <email@hidden>
References: 
 >Re: XCode, Subversion and Nib files (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: XCode, Subversion and Nib files
  • Next by Date: Re: XCode, Subversion and Nib files
  • Previous by thread: Re: XCode, Subversion and Nib files
  • Next by thread: Re: XCode, Subversion and Nib files
  • Index(es):
    • Date
    • Thread