• Post Reply Bookmark Topic Watch Topic
  • New Topic

plist how to use and build  RSS feed

 
Roger Wells
Ranch Hand
Posts: 51
1
  • Mark post as helpful
  • send pies
  • 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

 
Tim Moores
Saloon Keeper
Posts: 3893
91
  • Mark post as helpful
  • send pies
  • 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: 51
1
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!