• 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: "Shawn Erickson" <email@hidden>
  • Date: Mon, 3 Apr 2006 16:16:42 -0700

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: String encodings
      • From: Yorh <email@hidden>
References: 
 >String encodings (From: Yorh <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