objectIsForcedForKey: & managed prefs
objectIsForcedForKey: & managed prefs
- Subject: objectIsForcedForKey: & managed prefs
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 12 Sep 2002 14:39:29 -0400
Jaguar introduced two new methods to NSUserDefaults, objectIsForcedForKey:
and a similar method, which the documentation says are used to determine
whether a user's application preferences are managed by an administrator (as
in a computer lab, or by a parent on a home network). The docs instruct us
to disable user controls in all our applications' preference dialogs if
these methods return true -- and if the application supports managed
preferences. Ali Ozer emphasized this in the What's New in Cocoa session at
WWDC 2002. I'm a great believer in authority and rules and guidelines and
all that, so I want to comply -- but I don't get it.
There is nothing about these methods in the Programming Topics
documentation, the Jaguar Foundation release notes, or the Jaguar TechNote,
and I can't find anything online. (I can't look it up in Help Viewer,
because it crashes every time I run it.)
What does it mean to have "managed keys" or "managed preferences"? How does
it happen?
These methods are returning the opposite value from what I expected --
namely, true on my home computer. Now, it's true that I'm running as the
administrator of my computer (there aren't any individual, non-administrator
users set up). Is that all it takes to cause these methods to return true?
But then why would the docs tell me to disable controls in my preferences
dialog? I wouldn't be able to change them. I'm on a home network, but I set
it up myself and I'm the boss.
And how on earth would I set up my application so that it "supports managed
preferences?"
-- Confused in Quechee
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.