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: Ryan McGann <email@hidden>
- Date: Sun, 21 Sep 2003 15:03:07 -0700
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.
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.
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?
Ryan
There are 10 kinds of people in the world: those that can understand
binary, and those that can't.
_______________________________________________
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.