Re: Can't get keyedobjects.nib to macro expand
Re: Can't get keyedobjects.nib to macro expand
- Subject: Re: Can't get keyedobjects.nib to macro expand
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 5 Nov 2007 01:42:05 +0000
Whatever editor you used to create your keyedobjects.nib dutifully
converted the chevron characters to UTF-8 for you when you saved the
file. Keep in mind what was said before: despite whatever encoding is
used for the rest of the file, the chevron characters MUST be the
MacRoman characters, not UTF-8. The easiest thing for you to do might
be to write a quick script that replaces a single-byte character of
your choosing with the appropriate code for a chevron. For example,
you could use $PROJECTNAME$ when creating your template's nib, and
your script could convert that to «PROJECTNAME» prior to distribution.
I would recommend that whatever sentinel characters you choose, they
come from the 7-bit ASCII set, so that you don't wind up replacing
n-byte UTF-8 characters with one-byte MacRoman characters.
--Kyle Sluder
On 11/5/07, Tron Thomas <email@hidden> wrote:
> When I open the keyedobjects.nib file from the "Core Data Application"
> template in HexEditor, the entries for PROJECTNAME appear with one bytes
> per letter. However however when I open my version of keyedobjects.nib
> each characters is two bytes long.
>
> Both files are using the same encoding. I don't know how this happened,
> and why they look the same in Text Wrangler. In Text Edit, though my
> version still looks like it is in binary format.
>
> I guess I'm going to have to try making the file again and see if I can
> get it right next time.
>
> Kyle Sluder wrote:
> > UTF-8 and MacRoman encode the chevron differently. I just launched
> > TextEdit and created two separate files, each containing just a left
> > chevron (Option-\). hexdump says that the MacRoman version contains
> > the character 0x00c7, while the UTF-8 version contains the (two-byte)
> > character 0xabc2. Do a hexdump on your file and see what version you
> > have.
> >
> > --Kyle Sluder
> >
> > On 11/4/07, Tron Thomas <email@hidden> wrote:
> >
> >> I am still having problems with a template I'm trying to create for
> >> Xcode 2.4.
> >>
> >> I cannot get macro expansion to occur for the keyedobjects.nib file.
> >> This file is formatted as "UTF-8 no BOM", which is exactly the same
> >> format used for the keyedobjects.nib file in the "Core Data
> >> Application" template.
> >>
> >> Both keyedobjects.nib values are using entries like «PROJECTNAME»,
> >> yet the one in the "Core Data Application" templates gets expanded,
> >> and the keyedobjects.nib in my template does not.
> >>
> >> What can be preventing the nib file from performing macro expansion?
> >>
> >> _______________________________________________
> >> Do not post admin requests to the list. They will be ignored.
> >> Xcode-users mailing list (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >>
> >> This email sent to email@hidden
> >>
> >>
> >
> >
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden