• 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
application not seeing a plist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

application not seeing a plist?


  • Subject: application not seeing a plist?
  • From: Theodore Petrosky <email@hidden>
  • Date: Mon, 08 Oct 2012 08:11:28 -0700 (PDT)

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

  • Follow-Ups:
    • Re: application not seeing a plist?
      • From: Paul Hoadley <email@hidden>
    • Re: application not seeing a plist?
      • From: Johann Werner <email@hidden>
  • Prev by Date: Re: WOnder REST Application
  • Next by Date: Re: application not seeing a plist?
  • Previous by thread: How does ERXComponentContent get access to the parent component...
  • Next by thread: Re: application not seeing a plist?
  • Index(es):
    • Date
    • Thread