• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Would there be an easier way to get the name of the current Network Location?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Would there be an easier way to get the name of the current Network Location?


  • Subject: Would there be an easier way to get the name of the current Network Location?
  • From: Stephane <email@hidden>
  • Date: Thu, 15 Feb 2007 19:16:14 +0100

I want to know the readable name of the current Network Location.

According to the SC header, you can get the identifier of the current location using SCDynamicStoreCopyLocation.

OK, this gives a UUID which is User Unreadable I Dare to say.

A quick look in the SC header and in scutil gives no clues on how to get the readable name.

So let's go to MoreSCF. Sure we find some code to get the visible name (apparently it's MoreSCCopyUserVisibleNameOfSet).

The issue is that I don't want to integrate all the MoreSCF code just to get access to this feature.

I can certainly pick here and there some parts of the code to do this but I was wondering:

Isn't there an easier way to just get the readable name of the current location?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Would there be an easier way to get the name of the current Network Location?
      • From: Allan Nathanson <email@hidden>
  • Prev by Date: Re: Using CFFTPStream outside of the default run loop
  • Next by Date: Re: Would there be an easier way to get the name of the current Network Location?
  • Previous by thread: Re: Using CFFTPStream outside of the default run loop
  • Next by thread: Re: Would there be an easier way to get the name of the current Network Location?
  • Index(es):
    • Date
    • Thread