Hi Ted,

On 09/10/2012, at 1:41 AM, Theodore Petrosky wrote:

> public NSDictionary<?,?> data() {
>    NSDictionary<?,?> dict = 
> ERXDictionaryUtilities.dictionaryFromPropertyList("ExcelStyles", 
> NSBundle.mainBundle());          
>    NSLog.out.appendln("the dict = " + dict);                          
>    return dict;
> }
> 
> I have  ExcelStyles.plist in my WebServerResources folder and it has been 
> working beautifully for over a year.

> Should my data() method in my application return the dictionary if the .plist 
> lives in WebServerResources? Or was it working badly to start with? 
> 
> I don't plan on localization so I can leave the plist in the English.lproj so 
> I guess things aren't broken.
> 
> Why did this break?

I think I can pretty safely say it was never working, and that you've only just 
noticed.  ERXDictionaryUtilities.dictionaryFromPropertyList() eventually just 
calls methods on NSBundle, which is going to look under Resources for 
resources.  You should be able to put the plist at Resources/ExcelStyles.plist 
and have it work as expected.  No need to use localization folders if you don't 
want to.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to