Re: NSString to bit pattern

2009-05-11 Thread erappy
Thanks Alastair, it was a good hint and help.Cheers, On Sat, May 9, 2009 at 4:51 AM, Alastair Houghton < alast...@alastairs-place.net> wrote: > On 8 May 2009, at 10:00, erappy wrote: > > Hi, I am trying to find way to convert the NSString object into its bit >> pattern and convert that bit pat

Re: NSString to bit pattern

2009-05-08 Thread Alastair Houghton
On 8 May 2009, at 10:00, erappy wrote: Hi, I am trying to find way to convert the NSString object into its bit pattern and convert that bit pattern into another NSString object, For Example if I have NSString *origStr = @"Hello": NSString * bitPatternoforigStr ; no I want to convert it to the

Re: NSString to bit pattern

2009-05-08 Thread Alastair Houghton
On 8 May 2009, at 23:13, Robert Claeson wrote: On 8 May 2009, at 23:00, Andrew Farmer wrote: On 08 May 09, at 08:47, Greg Guerin wrote: A string is a sequence of characters. Retrieve each character, determine its bit-pattern, then append that pattern to an NSMutableString. Now you have t

Re: NSString to bit pattern

2009-05-08 Thread Greg Guerin
Andrew Farmer wrote: One extra complication: By Cocoa's standards, a string is not a sequence of bytes: it's a sequence of Unicode codepoints.* To treat a string as a "bag of bytes", you will first need to choose a text encoding to treat the text as, then convert it using the NSString dat

Re: NSString to bit pattern

2009-05-08 Thread Robert Claeson
On 8 May 2009, at 23:00, Andrew Farmer wrote: On 08 May 09, at 08:47, Greg Guerin wrote: A string is a sequence of characters. Retrieve each character, determine its bit-pattern, then append that pattern to an NSMutableString. Now you have to figure out how to turn a character into its

Re: NSString to bit pattern

2009-05-08 Thread Andrew Farmer
On 08 May 09, at 08:47, Greg Guerin wrote: A string is a sequence of characters. Retrieve each character, determine its bit-pattern, then append that pattern to an NSMutableString. Now you have to figure out how to turn a character into its bit-pattern. So break that down. One extra com

Re: NSString to bit pattern

2009-05-08 Thread Greg Guerin
erappy wrote: Hi, I am trying to find way to convert the NSString object into its bit pattern and convert that bit pattern into another NSString object, For Example if I have NSString *origStr = @"Hello": NSString * bitPatternoforigStr ; no I want to convert it to the bit pattern if Hello and

NSString to bit pattern

2009-05-08 Thread erappy
Hi, I am trying to find way to convert the NSString object into its bit pattern and convert that bit pattern into another NSString object, For Example if I have NSString *origStr = @"Hello": NSString * bitPatternoforigStr ; no I want to convert it to the bit pattern if Hello and return an object o