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 20.01.2006 15:11, "Douglas Norton" <email@hidden> wrote:

>> Probably because it's hard to make an example of when such a  function could
>> be used? At least, I'm at a loss - almost any mutation of a  localized string
>> may break its correctness.
> 
> When the string is:   "Progress: Copying files (_numfile_ of
> _totalfiles_)"
> 
> or a window title:   "Font usage: _documenttitle_"

  I don't buy this example - it's much easier to use format strings (%d, %s
etc) and CFStringCreateWithFormat(). Format strings even support reordering
of arguments.

- 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: Douglas Norton <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.