Re: Hex representation of NSString

2008-08-19 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 19:15 schrieb Charles Srstka: On Aug 18, 2008, at 6:18 AM, Robert Černý wrote: Actually,I'm trying to debug some weird problems with clipboard. My problem is that data copied into clipboard from legacy java application doesn't match data pasted into Cocoa application.

Re: Hex representation of NSString

2008-08-18 Thread Charles Srstka
On Aug 18, 2008, at 6:18 AM, Robert Černý wrote: Actually,I'm trying to debug some weird problems with clipboard. My problem is that data copied into clipboard from legacy java application doesn't match data pasted into Cocoa application. I've got data with accented characters which gets con

Re: Hex representation of NSString

2008-08-18 Thread Chris Blättermann
Hi there! Just subscribed to this list. @Robert: Do you mean by hex representation this: hello -> 0x68 0x61 0x6C 0x6C 0x6F ? Then I suggest you use the C language to do it, just "convert" a string to an array of characters by [yourstring UTF8String] And loop through the result and printf

Re: Hex representation of NSString

2008-08-18 Thread Chris Blättermann
Hi there! Just subscribed to this list. @Robert: Do you mean by hex representation this: hello -> 0x68 0x61 0x6C 0x6C 0x6F ? Then i suggest you use the C language to do it, just "convert" a string to an array of characters by [yourstring UTF8String] And loop through the result and print

Re: Hex representation of NSString

2008-08-18 Thread Jason Coco
On Aug 18, 2008, at 11:38 , Clark Cox wrote: On Mon, Aug 18, 2008 at 7:38 AM, Jason Coco <[EMAIL PROTECTED]> wrote: On Aug 18, 2008, at 10:18 , Clark Cox wrote: On Mon, Aug 18, 2008 at 5:38 AM, Jason Coco <[EMAIL PROTECTED]> wrote: On Aug 18, 2008, at 07:18 , Robert Černý wrote: Actual

Re: Hex representation of NSString

2008-08-18 Thread Clark Cox
On Mon, Aug 18, 2008 at 7:38 AM, Jason Coco <[EMAIL PROTECTED]> wrote: > > On Aug 18, 2008, at 10:18 , Clark Cox wrote: > >> On Mon, Aug 18, 2008 at 5:38 AM, Jason Coco <[EMAIL PROTECTED]> wrote: >>> >>> On Aug 18, 2008, at 07:18 , Robert Černý wrote: >>> Actually,I'm trying to debug some weir

Re: Hex representation of NSString

2008-08-18 Thread Jason Coco
On Aug 18, 2008, at 10:18 , Clark Cox wrote: On Mon, Aug 18, 2008 at 5:38 AM, Jason Coco <[EMAIL PROTECTED]> wrote: On Aug 18, 2008, at 07:18 , Robert Černý wrote: Actually,I'm trying to debug some weird problems with clipboard. My problem is that data copied into clipboard from legacy jav

Re: Hex representation of NSString

2008-08-18 Thread Clark Cox
On Mon, Aug 18, 2008 at 5:38 AM, Jason Coco <[EMAIL PROTECTED]> wrote: > > On Aug 18, 2008, at 07:18 , Robert Černý wrote: > >> Actually,I'm trying to debug some weird problems with clipboard. My >> problem >> is that data copied into clipboard from legacy java application doesn't >> match data pas

Re: Hex representation of NSString

2008-08-18 Thread Jason Coco
On Aug 18, 2008, at 07:18 , Robert Černý wrote: Actually,I'm trying to debug some weird problems with clipboard. My problem is that data copied into clipboard from legacy java application doesn't match data pasted into Cocoa application. I've got data with accented characters which gets con

Re: Hex representation of NSString

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 13:18 schrieb Robert Černý: Actually, I'm trying to debug some weird problems with clipboard. My problem is that data copied into clipboard from legacy java application doesn't match data pasted into Cocoa application. I've got data with accented characters which gets

Re: Hex representation of NSString

2008-08-18 Thread Robert Černý
Actually,I'm trying to debug some weird problems with clipboard. My problem is that data copied into clipboard from legacy java application doesn't match data pasted into Cocoa application. I've got data with accented characters which gets converted through MacOS Roman encoding even the visual repr

Re: Hex representation of NSString

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 12:40 schrieb Robert Černý: I don't like it because the string will be converted. I'm interested in exact values Oh, may I ask why? The string class encapsulates its representation. Anyway, if you want to look "inside" the instance, you probably have to subclass it or

Re: Hex representation of NSString

2008-08-18 Thread Robert Černý
I don't like it because the string will be converted. I'm interested in exact values and even allowLossyConversion:NO doesn't guarantee it. Or am I wrong? Robert 2008/8/18 Negm-Awad Amin <[EMAIL PROTECTED]> > > Am Mo,18.08.2008 um 12:21 schrieb Robert Černý: > > Hi,I'm trying to find a way how to

Re: Hex representation of NSString

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 12:21 schrieb Robert Černý: Hi,I'm trying to find a way how to get hex representation of NSString. I know I can convert NSString to NSData but I would like to rather not to do it. Or am I missing anything obvious? Maybe: Do it this way. Why don't you like it? Cheers,