Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PB project files and Perforce



Hello,
Are there Perforce users on this list? This issue may be the same for CVS. Do you keep your project.pbxproj file (from the project file package) locked or unlocked?

I configured Perforce so that when I get (or sync) my project.pbxproj file from my depot (or repository) it would be locked. Project Builder didn't seem to like having a project.pbxproj file locked. When I close and re-open the project, PB warns me that it can't save changes and says it will continue trying to do so.

I changed my Perforce settings so that my project.pbxproj file would always be writable. Of course, the next time I needed to edit my project.pbxproj file I forgot to open it for edit. I was able to get my changes checked in okay, but it was confusing and I almost lost the changes.

Next, without opening the project.pbxproj file for edit I made some changes. When I realized that I didn't want to keep those changes, I quit PB and did a force sync in Perforce to get the correct project.pbxproj file. When I tried to open that project in PB I got some error alerts. The project file was corrupt and couldn't be opened. I finally figured out that if I deleted my userName.pbxproj file from within the project file package that everything was back to normal and I could open the project again. Apparently, PB tries keep the project.pbxproj and userName.pbxproj files synchronized.

I think that storing user information within a project package file is not a good idea, but I'm not sure it's a bug. And sorry for the long email.

What do CVS and Perforce users think? Should I try to keep the project.pbxproj file locked and ignore the many warnings? Or, should I keep it unlocked try to remember to check in my changes when I've changed it?

I'm looking for solutions related to PB 2.1 on 10.2.6. I'm not using Xcode yet, but I'd be interested hearing if locked projects are handled easier on Xcode without breaking your NDA :-).
Chuck

P.S. Here's my current Perforce typemap:
TypeMap:
binary //....doc
binary //....pdf
binary //....tiff
binary //....jpg
unicode+w //....strings
unicode+w //....plist
unicode+w //...project.pbxproj
binary //...keyedobjects.nib
unicode //...info.nib
text //...classes.nib
unicode //....ooutline
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.