Hi everyone,

I want to use the NSLocalizedStringWithDefaultValue macro in my code (so I can see the proper strings in the UI as I debug), but it's awfully verbose. For example:

NSLocalizedStringWithDefaultValue(@"LibraryFolderTitle", (nil), [NSBundle mainBundle], @"Library", @"Library folder title")

I created a simple macro called DDLocalizedStringWithDefaultValue that just takes the key and the default value, and inserts the (nil) and [NSBundle mainBundle] bits for me. The problem is that genstrings doesn't recognize my macro.

Is there a way I can allow for localized strings with a default value, not have to be so verbose, but still have it be recognized by genstrings?

Thanks,

Dave

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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