Re: Search & replace in nib files?
Re: Search & replace in nib files?
- Subject: Re: Search & replace in nib files?
- From: Florent Pillet <email@hidden>
- Date: Sat, 13 Mar 2004 18:19:17 +0100
Do this from the command line with nibtool:
$ nibtool -r -C MyOldClassName GLMyNewClassName mynibfile.nib
You can do this for all .nib files in your app:
$ find myApplication.app -name "*.nib" -exec nibtool -r -C
MyOldClassName GLMyNewClassName {} \;
Even better, batch this easily with a shell script (note that this will
only properly work with zsh):
#!/bin/zsh
classNames=(MyClass1 MyClass2 MyClass3)
for oldClassName in $classNames;
do
newClassName=GL$oldClassName
echo Converting $oldClassName to $newClassName
find myApplication.app -name "*.nib" -exec nibtool -r -C $oldClassName
$newClassName {} \;
done
Put the above in a file and execute with: zsh myscript.sh
(or chmod +x and execute as a binary)
Power of Unix ;-)
Florent
On 13 mars 04, at 10:59, Glen Low wrote:
I've got to rename some of my classes to make them more standard
looking -- basically with the usual 2 letter prefix. I can do this
well enough in header and source files, but is there any easy way to
do this in Interface Builder over my nib file(s)?
--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463
http://perso.wanadoo.fr/fpillet
_______________________________________________
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.