Re: turn a group into a real folder?
Re: turn a group into a real folder?
- Subject: Re: turn a group into a real folder?
- From: James Bucanek <email@hidden>
- Date: Sat, 29 Jul 2006 11:18:51 -0700
Matt Neuburg wrote on Saturday, July 29, 2006:
>What about the case of a localized nib file? At present all such nibs are in
>their corresponding .lproj folder. How (if at all) can I move different nibs
>into different folders without breaking the localization mechanism? Can I do
>this by having multiple English.lproj folders, like so:
>
>..../someFolder
>..../someFolder/English.lproj
>..../someFolder/English.lproj/someNib.nib
>..../otherFolder
>..../otherFolder/English.lproj
>..../otherFolder/English.lproj/someNib.nib
Exactly. When you localize a source file (NIB, RTF, Image, Sound, ... it doesn't matter), a transparent path transformation is applied:
original source reference
<source folder>/<source file>
becomes
<source folder/<Language>.lproj/<source file>
This transformation is independent of the <source folder> or the <source file>. If you change <source folder>, then the entire <Language>.lproj/<source file> needs to move to that new location.
Another thing to keep in mind is that the project folder is not special. Every source item in the project references its object using a containing folder and a file/directory name. It just so happens that the containing folder for all items defaults to the project folder. Your .lproj folders at the top level of your project simply because that's where your NIB files were when you localized them -- not becuase that's where all localized files have to be. If you moved (or localized) your NIB files elsewhere, there would be corresponding .lproj subfolders in those locations as well.
>Or does localization just make this kind of folder-based reorganization
>impossible (for nibs)?
Not at all. You can localize any item at any location.
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>
_______________________________________________
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