• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

plist how to use and build

 
Ranch Hand
Posts: 95
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying get some help on how to build and use a plist at least that is what I think I want?

I have application that uses a text file as input. I need to somehow find out where this file is on my mac/window computer.

I also want to store the last place the window was shown so that I can open the application up with the window in the same
place.

Currently I have the path and screen x y cordinates hard coded in the application but I want to change that.

Some how I think this might be stored in a plist on a mac but have no ideal what is used for windows. If not plist where do I store
these items.

I looked at some of the plist in my library on the mac and did not see any thing that looked like a file name or location.

Maybe some type of good simple tutorial on plist and how it is used on a window/mac computer? I have looked at some and it seams more
complicated that the program itself.

Thanks
Roger

 
Bartender
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you really care where and how app preferences are stored? Especially for a cross-platform app I would use a cross-platform API that abstracts away platform differences, like the java.util.prefs package.
 
Roger Wells
Ranch Hand
Posts: 95
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks

I did not know about the java.util.prefs.Preferences that looks like what I want and maybe much
simpler.

Thanks
Roger
 
The knights of nee want a shrubbery. And a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic