• 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: 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.


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



 _______________________________________________
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: Re: Creating a Git Server
  • Next by Date: WOLips 4.2 and Eclipse 4.2.1
  • Previous by thread: Re: application not seeing a plist?
  • Next by thread: subscribe
  • Index(es):
    • Date
    • Thread