• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: application not seeing a plist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: application not seeing a plist?


  • Subject: Re: application not seeing a plist?
  • From: Johann Werner <email@hidden>
  • Date: Mon, 08 Oct 2012 17:44:23 +0200

Hi Ted,

I don't know why your plist is not loaded anymore but you really shouldn't put files that represent "internal" data into your public WebServerResources folder! Not only is this a security risk but what do you do when you decide to use separate web- and application servers, then you probably have no access to your WebServerResources from your app.
Put these files into Resources and use the good ol' WOResourceManager to retrieve them.

jw


Am 08.10.2012 um 17:11 schrieb Theodore Petrosky <email@hidden>:

> 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >application not seeing a plist? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: application not seeing a plist?
  • Next by Date: subscribe
  • Previous by thread: application not seeing a plist?
  • Next by thread: Re: application not seeing a plist?
  • Index(es):
    • Date
    • Thread