Re: String encodings
Re: String encodings
- Subject: Re: String encodings
- From: Yorh <email@hidden>
- Date: Tue, 4 Apr 2006 02:01:18 +0200
The nickdata length is 4 and the string is Yorh
On Apr 4, 2006, at 1:56 AM, Paul Forgey wrote:
NSData objects contain a pointer to the block of memory and it's
length. The hex address tells me nothing..
On Apr 3, 2006, at 4:52 PM, Yorh wrote:
Hi,
this is the NSData object <596f7268 >
On Apr 4, 2006, at 1:39 AM, Paul Forgey wrote:
Is there any chance your NSData * contains a terminating \0? I'm
assuming it shouldn't. Maybe it's failing because it is trying
to compare against string data with \0 as part of the data?
On Apr 3, 2006, at 4:30 PM, Yorh wrote:
Hi & thks,
Already done this too... :(
the NSTabView isn't nil when I add NSTabViewItem infact I can
see the items displayed correctly.
The only issue is that if I add a tabViewItem by hand with
[theTabView addTabViewItem:@"test"];
I can see the index, if I add it passing trough nickName2 it
doesn't work :(
Really cannot understand why ... starting to be desperate!
Yorh
On Apr 4, 2006, at 1:16 AM, Shawn Erickson wrote:
On 4/3/06, Yorh <email@hidden> wrote:
Hi to all,
I have a problem I think with string encodings.
I have a string made in this way:
NSString * nickName2 = [[NSString alloc]initWithData:dataNick
encoding:NSUTF8StringEncoding];
[self startPrivateWith:nickName2];
Do you ever release "nickName2"?
-(void)startPrivateWith:(NSString*)privUsername{
NSTabViewItem * newTab = [[NSTabViewItem alloc]init];
[newTab setIdentifier:privUsername];
[newTab setLabel:privUsername];
[theTabView addTabViewItem:newTab];
}
You don't appear to ever release "newTab" in the above.
I don't see anything obvious on what is causing you reported
issue.
Poke around at a deeper level with the debugger to see what you
can
find. For example make sure that "theTabView" isn't nil when you
attempt to add the tab view item.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40aphrodite.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40aphrodite.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden