To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 523
522  |  524
Subject: 
Re: Central location for LDraw prefs
Newsgroups: 
lugnet.cad.dev.mac
Date: 
Sun, 7 Sep 2003 06:44:05 GMT
Viewed: 
1888 times
  
Unless I'm misunderstanding, I think you would be much better off if you drop
".ldrawdir" from the plist filename above.  That way the file can contain other
settings in the future in addition to the LDRAWDIR setting you have now.  Or put
something else in place of ".ldrawdir" (".apps"?).  I don't know anything about
the Mac OS X preference heirarchy, but I don't think it's a good idea to have a
separate plist file for each setting.  (Surely Apple doesn't encourage this, do
they?)

No, Apple doesn't encourage that.  And you are right, it shouldn't be named
org.ldraw.ldrawdir.plist.

Most preferences for a single application are stored in a single file.  Some
applications use entire folders (especially web browsers--so they can have a
cache, history, bookmarks, etc).

There are a few preferences that are shared amongst many applications.  Notably,
all internet applications use com.apple.internetconfig.plist.  They share prefs
like <key>Home Folder</key><string>http://www.ldraw.org</string> and other
global stuff like that.

The other notable applications that share a pref file are iMovie, iTunes,
iPhoto, and iDVD.  They share com.apple.iapps.plist.  That file contains the
paths of resources that the other apps can use like, "path to iPhoto library",
"path to iTunes library", etc.,.

So how about:

org.ldraw.apps.plist

or

org.ldraw.mac.plist

or even just

org.ldraw.plist

The name of the preference file and the name of the ldraw folder key doesn't
matter to me.

I am mainly doing this because right now there is BrickDraw3D, MBC, L3P
Launcher, LDView, and I am working on getting LCX public presentable.  That is
alot of apps to tell where the ldraw folder is located.

To get LCX public presentable, I have to add a pref pane that lets the user pick
the ldraw folder.  And I figured I should make it a global preference.

Now you know why I brought this up!  ;)



Message has 2 Replies:
  Re: Central location for LDraw prefs
 
I vote for org.ldraw.plist because it's short and simple. However I could probably be convinced to go for org.ldraw.ldrawconfig.plist because it's like com.apple.internetconfig.plist, or maybe org.ldraw.apps.plist, but not the one with mac in it. To (...) (21 years ago, 7-Sep-03, to lugnet.cad.dev.mac)
  Re: Central location for LDraw prefs
 
(...) When you say "pref pane" do you mean a "PreferencePane" that goes into "System Preferences...", or do you mean just a way to set the preferences from a dialog box opened by selecting "Preferences..." from the application's "Application" menu? (...) (21 years ago, 7-Sep-03, to lugnet.cad.dev.mac)

Message is in Reply To:
  Re: Central location for LDraw prefs
 
(...) Unless I'm misunderstanding, I think you would be much better off if you drop ".ldrawdir" from the plist filename above. That way the file can contain other settings in the future in addition to the LDRAWDIR setting you have now. Or put (...) (21 years ago, 7-Sep-03, to lugnet.cad.dev.mac)

18 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR