• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: String encodings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String encodings


  • Subject: Re: String encodings
  • From: Yorh <email@hidden>
  • Date: Tue, 4 Apr 2006 01:03:12 +0200

Hi Paul,

dataNick is set up in this way:

NSMutableData * dataNick = [[NSMutableData alloc]init];
[dataNick appendBytes:&content length:(i)];

dataNick is set up correctly and NSLog is able to print the correct NSData object

thks
Yorh

On Apr 4, 2006, at 12:59 AM, Paul Forgey wrote:

Is dataNick is an NSData * instance? If it's a normal const char *utf8string, then use initWithUF8String: instead.

On Apr 3, 2006, at 3:55 PM, Yorh 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];
After it I adda NSTabViewItem in my tabView in this way:


-(void)startPrivateWith:(NSString*)privUsername{
	NSTabViewItem * newTab = [[NSTabViewItem alloc]init];
	[newTab setIdentifier:privUsername];
	[newTab setLabel:privUsername];
	[theTabView addTabViewItem:newTab];
}

Now I have to retrieve the index of the NSTabViewItem with a specified identifier.... but when I use indexOfTabViewItemWithIdentifier: the method returns me always NSNotFound.....

I'm really lost :(
Thank you all
Yorh

_______________________________________________
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
References: 
 >String encodings (From: Yorh <email@hidden>)
 >Re: String encodings (From: Paul Forgey <email@hidden>)

  • Prev by Date: Re: String encodings
  • Next by Date: Re: String encodings
  • Previous by thread: Re: String encodings
  • Next by thread: Re: String encodings
  • Index(es):
    • Date
    • Thread