Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Multiple developers & nib files

Multiple developers & nib files
Thread Tools
gperks
Dedicated MacNNer
Join Date: Oct 2003
Location: Round Rock, TX
Status: Offline
Reply With Quote
Apr 4, 2007, 09:20 AM
 
Subversion and its ilk work great when multiple people change text files.

nib files however, not so good. keyedobjects.nib is a binary file, so conflicts occur and merges are impossible.

Is there something I'm missing to make this easier? Can IB be told to write text instead?

What's the usual procedure for multiple developers working on nibs?
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Apr 4, 2007, 10:26 AM
 
Yes, you can have nib files written in an XML format -- I forget where the setting is, but it's in there somewhere, on a per-project basis.
I still doubt that merges would be very easy to manage, but it's worth trying.
     
szymczyk
Fresh-Faced Recruit
Join Date: Aug 2005
Status: Offline
Reply With Quote
Apr 4, 2007, 02:35 PM
 
To save a nib file as an XML file, open the nib file in Interface Builder and click the Nib tab in the nib file window. Select the Use text archive format checkbox.
Mark Szymczyk
Author, Xcode Tools Sensei
http://www.meandmark.com
     
gperks  (op)
Dedicated MacNNer
Join Date: Oct 2003
Location: Round Rock, TX
Status: Offline
Reply With Quote
Apr 4, 2007, 04:03 PM
 
THANK YOU!!!!

Much better. Most of our nibs were in text format already, somehow. All except MyDocument.nib - you know, the big one :-)

Thanks again!
     
gperks  (op)
Dedicated MacNNer
Join Date: Oct 2003
Location: Round Rock, TX
Status: Offline
Reply With Quote
Apr 5, 2007, 01:13 AM
 
Unfortunately even the XML-based nib files aren't easy to merge. Hundreds of CF$UID (or something) numbers are different and in conflict. How can I possibly resolve all those?

Seems like at this point we will have to lock the nib file in svn, or basically talk to one another about who is editing what. Yuck.

Sure there's a better way?
     
gperks  (op)
Dedicated MacNNer
Join Date: Oct 2003
Location: Round Rock, TX
Status: Offline
Reply With Quote
Apr 6, 2007, 01:10 PM
 
> I still doubt that merges would be very easy to manage

You're right. I hope this situation is improved in Leopard.

What does Apple do on large projects with a dozen developers? Without being able to share NIB files it must be difficult to coordinate.

Most source control systems are set up to not lock files. Sourcesafe is the only one I know that locks by default. I doubt Apple is using Sourcesafe

Nibs are such an important part of Cocoa development that it's difficult to avoid touching them.
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 7, 2007, 01:04 AM
 
Sounds like a big enough problem...
Have you tried posting the issue in any of Apple's own (developer?) forums?
If you reap any rewards, please let us know back here!
Best of luck
TOMBSTONE: "He's trashed his last preferences"
     
bone666
Fresh-Faced Recruit
Join Date: Feb 2004
Status: Offline
Reply With Quote
Apr 7, 2007, 07:47 AM
 
Simple, you check-in the .nib files as binary and not as text.
     
gperks  (op)
Dedicated MacNNer
Join Date: Oct 2003
Location: Round Rock, TX
Status: Offline
Reply With Quote
Apr 7, 2007, 10:00 PM
 
Comitting them as binary definitely means no merging is possible.

I'll try the Cocoa mailing list.
     
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Apr 7, 2007, 10:52 PM
 
Perhaps this is what the .xib file format is supposed to fix in Leopard. Seems an XML based nib file would merge much easier than any of the current solutions.
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Apr 7, 2007, 11:01 PM
 
Originally Posted by Thinine View Post
Perhaps this is what the .xib file format is supposed to fix in Leopard. Seems an XML based nib file would merge much easier than any of the current solutions.
Even the XML based nib file described in this thread that's available on Tiger?
     
WJMoore
Grizzled Veteran
Join Date: Jan 2002
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Apr 9, 2007, 04:44 AM
 
Originally Posted by gperks View Post
>Most source control systems are set up to not lock files. Sourcesafe is the only one I know that locks by default. I doubt Apple is using Sourcesafe
I believe Apple use Perforce mostly, which locks by default. You issue p4 edit to edit a file. If someone else issues p4 edit before you check the file in it will complain.
     
gperks  (op)
Dedicated MacNNer
Join Date: Oct 2003
Location: Round Rock, TX
Status: Offline
Reply With Quote
Apr 11, 2007, 01:49 PM
 
Not much insight from the Cocoa mailing list, I'm afraid. It would be awfully wonderful if Leopard's IB has this taken care of.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:52 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,