preferences

Best Practices in Storing and Accessing WebApp User Privacy Settings?

If you allowed people to determine who could view their user information, what would be the best way in which to store and access that information? They would be setting their preferences in any of these ways: User Based (select specific users - ie. Block: "Munch", "Dummy") Checkbox Based (select one or many groups of users - ie. "My ...

NSConcreteNotification is received, but not defined?

I'm writing preferences for my app which registers it for launch at login (using LSSharedItemList API). All goes fine and my app toggles its presence in user's login items upon checkbox status. Now I want to tackle another problem when user actually removes the app from "Login items" in Accounts.prefPane. Using Notification Watcher I se...

Changing android widget setup preferences after creation?

Say my app has a widget and I use a configuration screen to do initial app widget setup and set a few preferences. I want the user to be able to change those settings by simply going into my app's settings screen and clicking an intent preference to open up the same options the user was given when the app was created. Can I use the sam...

Remove/hide a preference from the screen.

I have an activity which extends PreferenceActivity. I'm loading preferences from the xml file. But in some cases i need completely hide one of the preferences from the screen based on my app state. There is a setEnabled method, but it's not exactly what if want. I want to remove that preference from the screen completely. Is it possible...

How and where to perform login process (in this case getting token from server) in iPhone app?

So what I need to do in my application for loggin in is Perform an HTML request with user/pass which returns XML with a token. The token is used in later http requests. I know how to perform http requests and also how to parse them, I have already been doing that just with the token hardcoded for testing purposes. I also have it worked ...

Is this a known issue in firefox extensions on Mac OS?

I've developed a firefox extension which contains a small dialog defined by this XUL script: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <prefwindow id="firenowPreferences" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="Fire.Now" ondialogaccept='on...

Storing global site preferences [PHP/MySQL]

Can anyone recommend the best practice for storing general site preferences? For example, the default page title if the script doesn't set one, or the number of featured items to display in a content box, or a list of thumbnail sizes that the system should make when a picture is uploaded. Centralizing these values has the obvious benefit...

Maximum length of a String Preference in Firefox ?

I would like to know what is the maximum length of a String when saving in the classic preferences System: var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref("com.exemple.namespace.preference", potentiallyLongString); Couldn't find it...

How to migrate NSUserDefaults in new release?

I have an iPhone app that stores some settings using NSUserDefault standardUserDefaults. When I add new features to the app I need to add new default settings and so I have to migrate/upgrade the NSUserDefaults. For now I just store the version number and check this when the app is launched but it has quickly become very messy as I have ...

Why does my Eclipse Galileo not have Windows->Preferences->Server page?

I downloaded Eclipse Galileo (3.5.1) SR1 and Eclipse SDK 3.5.1 and neither of them have a "Server" page on the Windows->Preferences screen. Any ideas why? Tx. ...

Is there something like an "Options" library for .NET?

I'm working on a plugin system. Some plugins need user input. I would like them to be able to report to the main application what input they need and have the main application decide how to get it. It seems like there might be some kind of library designed for specifying options like this. So like the plugin could return some kind of Opt...

Override System Preference Pane?

Is there a way to override / disable a system preference pane? I'm wanting to put an application together that would disable or override the Energy Saver preference pane, and would put it's own rules in place for putting a machine into standby, turning off the monitor, or other various energy saving activities. ...

Show extra info for Preference screens when CheckboxPreference summary field is not enough long?

I have a screen where you can enable/disable modules for my Android application. For this I use a CheckboxPreference screen. This is all good, but the summary field gets cut off if longer descriptions are added than 2 lines. Suppose I have 4-5 lines of description available for each module, I would like to display this in a helper wind...

indentation preference and personality

This question is similar in spirit to : http://stackoverflow.com/questions/492178/links-between-personality-types-and-language-technology-preferences But it is based specifically on indentation (spaces vs tabs and the number of spaces). The reason I am asking here instead of searching is because I remember seeing a specific document w...

Dismiss android preferences dialog on Keyboard ACTION_DONE press

I would like to be able to close the editpreference dialog (as shown here http://twitpic.com/18ttdp) by pressing the 'Done' button on the keyboard. Currently, pressing 'Done' just dismisses the keyboard but leaves the dialog. In other parts of my application I use code similar to the following to intercept the 'Done' key press and exec...

How does one declare the type of an Android preference?

I have a preferences.xml that looks like this: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt; <EditTextPreference android:name="Sample" android:enabled="true" android:persistent="true" android:summary="Sample" android:defaultValue="3.0" android:title...

CFPreferences creates multiple files

I have only a little question: Why the CFPreferences-API creates multiple files in my UserPrefs-Directory? All the files have my Bundle-Identifier as name and all (except the one, the original) have added a suffix like this: com.myComp.myApp.plist <- (only this plist-file should be created) com.myComp.myApp.plist.0qzcicc com.myComp.my...

How to map IDictionary<string, object> in Fluent NHibernate?

I am looking to persist user preferences into a collection of name value pairs, where the value may be an int, bool, or string. There are a few ways to skin this cat, but the most convenient method I can think of is something like this: public class User { public virtual IDictionary<string, object> Preferences { get; set; } } wit...

Bypass system sound setting objective c

Hi. I have an app that Is supposed to play a AudioServicesPlayAlertSound(); but I've noticed on the iPod touch 1G, the sound will only play if the system sound setting is set to speaker or both. Is there a way to bypass this setting, because I know it works when the setting is not set to headphones. Also, if it is not possible, is there ...

How do I find the "Preferences" menu in Eclipse in OS X?

In installing PyDev in eclipse, I need to go to window > preferences > pydev . . . But when I click on Window, there is no preferences option, and I can't find it elsewhere. Any ideas? ...