I have a wonder app that is about a year old. I added the ExcelGeneration stuff 
and everything was working fine.

in the last month I added a few frameworks with the idea of adding some extra 
features and all of a sudden the excel stuff wouldn't work. in my application I 
have:

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. In tracking down the problem, I discovered 
that the NSLog file was returning "the dict = null" as the log message. I 
re-read the docs on ERXDictionaryUtilities.dictionaryFromPropertyList and it 
should work, but I also read somewhere about localized and non localized files. 
On a lark I copied my ExcelStyles into a newly created English.lproj folder in 
my Resources folder and voila the log reports my dict is loaded.

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?

Ted
 _______________________________________________
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