> I am curious what _good_ solutions (if any), within the CodeWarrior
> environment, people have come up with that allow them to treat the .nib
> folders as if they were files.
>
> If you have any suggestions, please let me know.
Initially, I put the .nib folder in the project, so I could double-click
on it, but not under version control. Then, I manually used the
Contextual Menu Item in Finder: Create Archive, and put the resulting
.zip file in the project, under version control. This requires that, as
I change the .nib in Interface builder, I remember to check out the .zip
file, delete it, then create a new .zip file.
Naturally, this means editing the File Mappings preference panel to
allow .zips in a project as do-nothing files.
I now believe that Miro is right: That I should individually check in
the .xib and .nib contents files into version control (I can hide them
in a group in the Codewarrior project file most of the time.) I'll just
give up on the idea of double-clicking on the .nib package in the
project, and use the project's title bar menu to get to its containing
folder in the Finder, where I can easily navigate to the .nib package.
Since .nib FILEs and .xib files are text files in Carbon, then I'll get
the advantage of source code control diffing.
Eric - 28 Sep 2004 20:41 GMT
> > I am curious what _good_ solutions (if any), within the CodeWarrior
> > environment, people have come up with that allow them to treat the .nib
[quoted text clipped - 8 lines]
> I change the .nib in Interface builder, I remember to check out the .zip
> file, delete it, then create a new .zip file.
This is essentially what was doing, except with the extra step of
needing to transfer the ckid from one .sit file to the new .sit file.
> I now believe that Miro is right: That I should individually check in
> the .xib and .nib contents files into version control (I can hide them
> in a group in the Codewarrior project file most of the time.)
This is the solution that I have switched to...transferring the ckids
was just to troublesome.
> Since .nib FILEs and .xib files are text files in Carbon, then I'll get
> the advantage of source code control diffing.
Good point.
Eric - 29 Sep 2004 17:17 GMT
> > I now believe that Miro is right: That I should individually check in
> > the .xib and .nib contents files into version control (I can hide them
> > in a group in the Codewarrior project file most of the time.)
>
> This is the solution that I have switched to...transferring the ckids
> was just to troublesome.
Actually, I have just discovered that this solution is not working
well.. CodeWarrior cannot find the classes.nib, etc. files inside of the
.nib folder. Since it doesn't know where they are, I cannot check them
in or out within the CodeWarrior environment.
When I export the project to XML, I see an entry that looks like:
<FILE>
<PATHTYPE>Name</PATHTYPE>
<PATH>classes.nib</PATH>
<PATHFORMAT>Unix</PATHFORMAT>
<FILEKIND>Resource</FILEKIND>
<FILEFLAGS>Debug</FILEFLAGS>
</FILE>
This seems obviously incorrect as the <PATH> should include the name of
the .nib folder that classes.nib is sitting in.
Is there some trick that I am missing that would allow this technique to
work?
I am about to try editing the project XML file and then importing it to
see if that might help. Would anyone expect this to work?
Eric - 29 Sep 2004 18:52 GMT
> This is the solution that I have switched to...transferring the ckids
> was just to troublesome.
Of course, a more fundamental problem with placing the individual files
in the .nib folder with the Projector version control system is that
Interface Builder does not apparently honor ckid resources. It will
allow you edit regardless and, when saving, will write the files out
without the ckid resource.
Of course, this would seem to lead to the conclusion that one should use
CVS...it would appear Projector has finally reached the end of its life.
David Phillip Oster - 30 Sep 2004 05:05 GMT
> > This is the solution that I have switched to...transferring the ckids
> > was just to troublesome.
[quoted text clipped - 7 lines]
> Of course, this would seem to lead to the conclusion that one should use
> CVS...it would appear Projector has finally reached the end of its life.
I'm using Voodoo, which doesn't need you to copy the ckid resource, and
does set the Macintosh Lock bit.