• 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: "Sean McBride" <email@hidden>
  • Date: Tue, 26 May 2009 11:00:00 -0400
  • Organization: Rogue Research Inc.

Never ever use sprintf for anything.  See here for why:

<http://developer.apple.com/documentation/security/conceptual/
SecureCodingGuide/Articles/BufferOverflows.html#//apple_ref/doc/uid/
TP40002577-SW10>


On 5/26/09 3:26 PM, Alexander Spohr said:

>sprintf
>
>
>
>Am 25.05.2009 um 09:16 schrieb Pierre Berloquin:
>
>> Hi
>> I need to display an int with  CGContextShowTextAtPoint
>> that only accepts char arrays.
>> How do I go about it ?
>> I can't find how to convert an int into a char* in objective-C !!

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: Alexander Spohr <email@hidden>
References: 
 >Displaying a number with Quartz (From: Pierre Berloquin <email@hidden>)
 >Re: Displaying a number with Quartz (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: NSWindow in threads
  • Next by Date: Re: NSWindow in threads
  • Previous by thread: Re: Displaying a number with Quartz
  • Next by thread: Re: Displaying a number with Quartz
  • Index(es):
    • Date
    • Thread