• 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: Displaying a number with Quartz
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying a number with Quartz


  • Subject: Re: Displaying a number with Quartz
  • From: Ken Thomases <email@hidden>
  • Date: Tue, 26 May 2009 11:35:36 -0500

On May 26, 2009, at 11:13 AM, Pierre Berloquin wrote:

Finally, thanks to Alexander, my pure Objective C solution is
NSString *S = [[NSString alloc] initWithFormat:@"%i", i];
const char *text = [S UTF8String];

Don't forget, after you're through with S:

	 [S release];

Or, you could use [NSString stringWithFormat:@"%i", i] to create the string without taking on the responsibility for later releasing it.

(Also, 'S' as the name for a local variable doesn't follow typical Cocoa naming conventions.)

Cheers,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Displaying a number with Quartz
      • From: Pierre Berloquin <email@hidden>
References: 
 >Displaying a number with Quartz (From: Pierre Berloquin <email@hidden>)
 >Re: Displaying a number with Quartz (From: Alexander Spohr <email@hidden>)
 >Re: Displaying a number with Quartz (From: "Sean McBride" <email@hidden>)
 >Re: Displaying a number with Quartz (From: Alexander Spohr <email@hidden>)
 >Re: Displaying a number with Quartz (From: "Sean McBride" <email@hidden>)
 >Re: Displaying a number with Quartz (From: Pierre Berloquin <email@hidden>)

  • Prev by Date: Re: NULL Outlets in one file work in another
  • Next by Date: Re: String Comparison and return values
  • Previous by thread: Re: Displaying a number with Quartz
  • Next by thread: Re: Displaying a number with Quartz
  • Index(es):
    • Date
    • Thread