Re: Using subversion with Xcode and Interface Builder
Re: Using subversion with Xcode and Interface Builder
- Subject: Re: Using subversion with Xcode and Interface Builder
- From: Nick Zitzmann <email@hidden>
- Date: Sun, 27 Jun 2004 15:46:14 -0600
On Jun 27, 2004, at 3:06 PM, Adam Olsen wrote:
1) Every time I update with "svn update" something screwy happens to
my .nib files. If I try to open them in IB, it complains that they
are "Read Only" and that I won't be able to save them. I've looked at
the permissions on the .nib folder itself and its contents, but
everything has write permissions. The only thing I can see that
doesn't have write permissions are the .svn directories in there - but
this should effect IB, should it? Is there any way to get around
this? I can convince IB that it's not read only by issuing a chmod -R
+rw in my project directory, but there's got to be a better way.
This is due to a bug in Interface Builder. IB takes a look at every
file in the nib, including files it shouldn't care about (e.g. files in
CVS and Subversion private directories), and if just one of them is
read-only, then IB freaks out and thinks the entire nib is read-only
when it's not. Unfortunately, Subversion triggers this behavior by
marking some of the files in its directory inside the nib as read-only.
The workaround I've used is to go into the project directory in the
Finder, find the appropriate lproj directory, get info, and choose to
apply the directory's permissions to everything inside the directory.
Then you will be able to save nibs in IB again, but you'll have to do
that again every time you want to edit a nib you just downloaded.
2) When building my app Xcode copies all of the .svn directories into
the Contents/Resources. Is there a way to stop it from doing this?
Not as far as I know. However, you can correct this by using a shell
script build phase that uses the "find" command to locate and delete
them inside the application bundle.
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.