[Adium-devl] [19622] comment: AIAccountViewController: AILocalizedString() vs AILocalizedStringFromTableInBundle()
Evan Schoenberg
evan.s at dreskin.net
Sat May 5 03:57:47 UTC 2007
David, cc'ing the list since this might come up again,
You'd think it should be AILocalizedString(), and it used to be...
and I couldn't figure out why the localizations weren't working. It
uses the class's bundle, so it should work! [self class] to be
specific....
...so what happens when AIJabberAccountViewController in the
Purple.AdiumPlugin bundle subclasses AIAccountViewController from the
Adium.Framework bundle? [self class] then refers to
AIJabberAccountViewController, so its bundle is Purple.AdiumPlugin,
and the strings don't get used properly.
So, generally speaking, if a class is potentially going to be
subclassed outside its bundle and still will be utilizing resources
from its bundle, hard-coding the class is necessary.
Cheers,
Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070504/00d16c88/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070504/00d16c88/attachment.sig>
More information about the devel
mailing list