Re: Determining if the current network location is "Automatic"
Re: Determining if the current network location is "Automatic"
- Subject: Re: Determining if the current network location is "Automatic"
- From: Allan Nathanson <email@hidden>
- Date: Mon, 22 Sep 2003 12:05:54 -0400
On Sep 21, 2003, at 6:03 PM, Ryan McGann wrote:
On Sunday, September 21, 2003, at 07:47 AM, Allan Nathanson wrote:
On Sep 20, 2003, at 10:11 PM, Ryan McGann wrote:
In my app I'd like to be able to determine if the current network
location is "Automatic", and act differently then when the network
location is set to a specific user-created location. Is there
something I can use to identify the "Automatic" location other than
its user visible name (which can change with localization)?
There is nothing special about the network configuration associated
with the initial "Automatic" location. In fact, using the Network
Prefs pane you can change the settings for this location to be
anything you like. As such, I would shy away from simply checking
for the "name".
Bummer. I guess "Automatic" should really be called "Default" then,
because I see know it does nothing more than the other network
locations.
I'd agree that "Automatic" may not have been the best choice of
location/configuration names.
Is the set ID guaranteed not to change across Mac OS X systems?
Nope.
... and what would you do differently for an alternate location?
Not sure what you mean here by "alternate" location...user created
locations? Those locations I'd like to handle differently than the
"default" location.
Basically I'm writing an application that wants to do have separate
settings for each network location, but we've found in user testing
that many people just use the Mac OS X "Automatic" location because it
works so well, and therefore do not create seperate locations. That
would make this feature in our product useless for many people,
especially our target audience of "novice" users. So we thought that
when the location was set to "Automatic", we would have our own
detection of default route changes, and change our settings
automatically.
Ah, the twisty maze of network configurations (also called
"locations"), physical locations, and preferences that one might like
to have track where we are ...
I guess for now I'll have to hard code set ID 0 to be the Automatic
location. How often would the set ID for the Automatic location
change?
While I'm unaware of any plans to change the set ID for the
initial/default/automatic location I'll make no statements to the
effect that this ID will always remain the same.
- Allan
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.