Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / November 2004



Tip: Looking for answers? Try searching our database.

some PPob resources still appears in a non Human readable format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nebli - 12 Nov 2004 13:26 GMT
Hi all,

I have a strange probleme :

I have some .rsrc files, I can open them with Constructor, and I can
see all the dialogs (the PPob resources) inside this .rsrc file.

I want to make a auto process that manipulate a list of .rsrc files.
So I convert them into .r files using the Res/DeRez command of MPW
with the PowerPlant.r file.

The problem is that when I convert the .rsrc files into .r files, some
dialogs (PPob resources) still appears in raw or Hex format, whereas I
need them to appears in a human readable format.

I read many threads in this group, and I see that CodeWarrior can
convert the .rsrc file into .r files, but I don't understand exactly
the manipulations that have to be done, Im a very new user of
CodeWarrior :-(.

Can someone give me an exact sequence of manipulations, to give me the
possibility to use CodeWarrior to convert the .rsrc files into .r with
in particular the PPob resource in a human readable format ? (I have
CodeWarrior 8.3 and 9.3).

Thanks for your help.
David Phillip Oster - 12 Nov 2004 16:28 GMT
> I want to make a auto process that manipulate a list of .rsrc files.
> So I convert them into .r files using the Res/DeRez command of MPW
[quoted text clipped - 3 lines]
> dialogs (PPob resources) still appears in raw or Hex format, whereas I
> need them to appears in a human readable format.

Read the postings that this search finds, then ask specific questions:

<http://groups.google.com/groups?q=Include_User_Template>
nebli - 22 Nov 2004 07:58 GMT
> > I want to make a auto process that manipulate a list of .rsrc files.
> > So I convert them into .r files using the Res/DeRez command of MPW
[quoted text clipped - 7 lines]
>
> <http://groups.google.com/groups?q=Include_User_Template>

Thanks a lot for your help David, your help sent me in the good
direction, because I found what I was looking for.

Did you (or any one else) have any idea for the conversion of some
.nib files into human readable file format ?

Thanks
David Phillip Oster - 22 Nov 2004 14:55 GMT
> Did you (or any one else) have any idea for the conversion of some
> .nib files into human readable file format ?

An interface builder .nib "file" is often actually a package.
Control-Click on one in Finder, and see if there is a Show Package
Contents contextual menu command. Inside the .nib's Contents folder
you may find a .xib file. This is an XML file that is the actual data
that your program will use. You can edit it in a text editor or an
XML editor.

You can encourage Interface Builder to save .xib files by opening a
.nib file in Interface Builder, and in Interface Builder's xxx.nib
window, choose the "nib" panel from the Instances|Images|Nib selector
and choose "Mac OS X Version 10.3" from the "Oldest Target:" popup
menu.

Do you know about nibtool?
In Terminal, type:

man nibtool

for information on a general tool from apple for converting nib files
into a human readable format. In particular, nibtool is useful for
localization : separating out the strings.  However, in general, nibtool
will NOT convert back from its human readable output format into a nib
file.
nebli - 24 Nov 2004 08:36 GMT
> > Did you (or any one else) have any idea for the conversion of some
> > .nib files into human readable file format ?
[quoted text clipped - 4 lines]
> you may find a .xib file. This is an XML file that is the actual data
> that your program will use.

I know that the .nib files are packages, and they contains some other
nib and xib files. But some (not all) of my .nib packages, contain
only nib files (no xib files).

> You can encourage Interface Builder to save .xib files by opening a
>  .nib file in Interface Builder, and in Interface Builder's xxx.nib
> window, choose the "nib" panel from the Instances|Images|Nib selector
> and choose "Mac OS X Version 10.3" from the "Oldest Target:" popup
> menu.

Using both .nib packages (which contain both xib and nib files, and
the other which contain only nib files), opened with Interface
Builder, I have no "nib" panel, but only
"Instance|Classes|Images|Sounds". (I have MAC OS 10.3.6 and IB 2.3.2
(v291)).

> for information on a general tool from apple for converting nib files
> into a human readable format. In particular, nibtool is useful for
> localization : separating out the strings.  However, in general, nibtool
> will NOT convert back from its human readable output format into a nib
> file.

after the conversion of the .nib package into human readable format
(resulting nibtool file) (I did it and it works), suppose we made a
little modification (e.g. change coordinates of an object) inside the
resulting nibtool file, can I integrate this modification into the
.nib package (I need confirmation if this operation is possible or not
and how) ?
I tryed to integrate the resulting nibtool file into the .nib package,
but the terminal says that the destination is a folder.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.