• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Saloon Keeper
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
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic