Re: application not seeing a plist?
Re: application not seeing a plist?
- Subject: Re: application not seeing a plist?
- From: Paul Hoadley <email@hidden>
- Date: Tue, 09 Oct 2012 08:56:57 +1030
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.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden