On 20.12.2009, at 21:30, Ricky Sharp wrote:
> Thus, I'm wondering if it would ultimately be worth it to externalize all 
> strings from my nibs and just put everything in my single .strings file.  
> This will clearly involve me adding tons of IBOutlet ivars just so that at 
> runtime I can set their text with NSLocalizedString APIs.

 One approach to avoid the whole IBOutlet excess would be to create subclasses 
of the standard view classes which, when they are loaded, use their 
contents/title as the key and pass it to NSLocalizedString(). That way, your 
NIBs only contain keys, and the .strings files can hold the actual strings, 
including comments.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to