• 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: Simple C Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple C Question


  • Subject: Re: Simple C Question
  • From: Thomas Deniau <email@hidden>
  • Date: Tue, 29 Jan 2002 20:38:36 +0100

Le 29/01/02 20:12, Carla Lewis disait :

> I want to setStringValue of an NSString with variable of type char? How
> do I convert char-type to NSString type?

char * cString="blah";
NSString *string=[NSString stringWithCString:cString];

Then use 'string' in setStringValue.

--
Thomas Deniau


References: 
 >Simple C Question (From: Carla Lewis <email@hidden>)

  • Prev by Date: Re: Getting a file's icon > 32x32 (Solved)
  • Next by Date: Re: How do I implement contextual-menu to NSTableView/NSOutlineView
  • Previous by thread: Simple C Question
  • Next by thread: Re: Simple C Question
  • Index(es):
    • Date
    • Thread