discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: converting hex values to characters..


From: kotesh
Subject: Re: converting hex values to characters..
Date: Fri, 4 Jan 2002 17:25:23 +0530

Richard,

Thanks a lot for your advice. It has worked as expected.

Thanks
kotesh

----- Original Message -----
From: "Richard Frith-Macdonald" <richard@brainstorm.co.uk>
To: "kotesh" <kotesh@orillion.com>
Cc: "discuss GNUstep" <discuss-gnustep@gnu.org>
Sent: Friday, January 04, 2002 4:20 PM
Subject: Re: converting hex values to characters..


>
> On Friday, January 4, 2002, at 09:52 AM, kotesh wrote:
>
> > Hi,
> >
> > HAPYY NEW YEAR for everybody.
> >
> > I have a question on converting hex values into characters defined in
> > property list. The following property list contains a two hex
> > characters 10('\n') and 97('a') defined against "Delimiters" key.
> > Delimiters key is creating NSMutableData object which contains the hex
> > values. I did not find any method in NSMutableData for converting these
> > values into characters.Some of the methods like bytes and get bytes
> > are not showing desired characters.
> >
> > Please let me know if there is a way to convert hex bytes defined in
> > PropertyList to characters..
> >
>
> The property list contains an NSData object ... if you want to convert
> the NSData to a string you need to
> use [NSString -initWithData:encoding:]
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep




reply via email to

[Prev in Thread] Current Thread [Next in Thread]