• 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
Why Won't CFPreferencesCopy[App]Value Read Alias?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why Won't CFPreferencesCopy[App]Value Read Alias?


  • Subject: Why Won't CFPreferencesCopy[App]Value Read Alias?
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 10 Aug 2005 12:13:03 -0700

My app can read its license information from the any-user preference domain
on the current host, (thanks to my having trudged through MoreAuthSample a
couple months ago).  To read the information from the any-user domain, I
call:

CFPreferencesCopyValue (myKey, myBundleID,
    kCFPreferencesAnyUser, kCFPreferencesCurrentHost);

Today, I replaced the targetted .plist file in /Library/Preferences with an
alias of the same name and extension.  The target of the alias is the actual
.plist file which is on another host on our network.  I thought this would
be a nifty way to implement a network license server.  If I doubleclick on
the alias in the Finder, Property List editor opens and shows the License
Information; i.e I certainly have access to the target.

But when my app runs, the above call returns NULL if I have this alias in
/Library/Preferences instead of the actual file.

I have tried changing the last argument to kCFPreferencesAnyHost, and also I
have tried calling CFPreferencesCopyAppValue instead.  Same result.

Why won't these functions go for my alias?

Jerry Krinock


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why Won't CFPreferencesCopy[App]Value Read Alias?
      • From: Chris Parker <email@hidden>
  • Prev by Date: Re: Core Data SQL store looses data that XML store does not
  • Next by Date: Re: Problem centering inside a scrollview
  • Previous by thread: Open Recent menu
  • Next by thread: Re: Why Won't CFPreferencesCopy[App]Value Read Alias?
  • Index(es):
    • Date
    • Thread