• 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: va_list customize strings and objects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: va_list customize strings and objects.


  • Subject: Re: va_list customize strings and objects.
  • From: Michael Ash <email@hidden>
  • Date: Sat, 14 Aug 2010 13:33:25 -0400

On Sat, Aug 14, 2010 at 1:10 PM, Mr. Gecko <email@hidden> wrote:
> I may as well just write my own stringWithFormat:arguments: to do what I need, it'll probably be the best way if I can't do the things in default.

That's probably your best bet. You can probably find the source to an
implementation of vasprintf and modify it to take %@, with the special
semantics you desire. You could probably find Apple's version on
opensource.apple.com and use that. Complying with the APSL doesn't
look too onerous.

Trying to comply with *all* of the various modifiers allowed by printf
doesn't seem too practical, especially when you get into esoteric
stuff like length modifiers and argument position indicators.

Mike
_______________________________________________

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

References: 
 >va_list customize strings and objects. (From: Mr.Gecko <email@hidden>)
 >Re: va_list customize strings and objects. (From: "Mr. Gecko" <email@hidden>)
 >Re: va_list customize strings and objects. (From: "Mr. Gecko" <email@hidden>)
 >Re: va_list customize strings and objects. (From: Keary Suska <email@hidden>)
 >Re: va_list customize strings and objects. (From: "Mr. Gecko" <email@hidden>)
 >Re: va_list customize strings and objects. (From: Keary Suska <email@hidden>)
 >Re: va_list customize strings and objects. (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: va_list customize strings and objects.
  • Next by Date: Re: Get an escape sequence out of an NSString
  • Previous by thread: Re: va_list customize strings and objects.
  • Next by thread: Re: va_list customize strings and objects.
  • Index(es):
    • Date
    • Thread