Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFMutableStringRef creation question



On Fri, 20 Jan 2006 12:51:42 -0500 Laurence Harris <email@hidden> wrote:

Format strings even support reordering of arguments.
When would you use this with localized strings?

Replaced parts don't always go in the same order in different languages. As Apple documentaion nicely puts it,


  "%@ Error! %@ failed!" = "%2$@ blah blah, %1$@ blah!";

The use of format strings is a fine mechanism, but in my case I use the same
system I implemented back when I was using Pascal, before format strings
were even an option.

Was using CFStringCreateMutableCopy() a problem in your case? It certainly shouldn't have been such from the performance point of view - and, after all, search and replace is slower than using a format string anyway.


You asked why there was no function to create mutable strings from .strings files directly. Obviously, I am not aware of how that decision was made, but there doesn't appear to be any reason to call it wrong (of course, if the answer to the question above is "no").

- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: CFMutableStringRef creation question (From: Laurence Harris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.