且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从我的应用程序启动我的设置包?

更新时间:2022-12-21 20:44:05



请参阅本文档,应用程序首选项部分。下面是介绍中的相关部分:


将应用程序首选项添加到设置应用程序最适合生产力型应用程序,您具有通常配置一次,然后很少更改的首选项值。例如,邮件应用程序使用这些首选项来存储用户的帐户信息和邮件检查设置。由于设置应用程序支持按层次显示首选项,因此在拥有大量首选项时,从设置应用程序处理首选项也更为合适。在您的应用程序中提供相同的首选项集可能需要过多的屏幕,并可能导致用户混淆。



当您的应用程序只有几个选项或有选项用户可能想要定期更改,您应该仔细考虑是否应用程序是适合他们的地方。例如,实用程序应用程序在其主视图的背面提供自定义配置选项。视图上的特殊控件将其翻转以显示选项,另一个控件将视图返回。对于简单的应用程序,这种类型的行为提供对应用程序的选项的立即访问,并且对于用户比去设置更方便。


更新



链接已过期。 这是一个类似的文档设置包。


I am working on adding in a settings bundle for my application as a cheap way of getting a GUI on my preferences. Is it possible to launch this from a button in my application or will my users always have to access it manually via the built in settings application?

They may have to go to the settings application, depending on how you do it.

See this document, the Applications Preferences section. Here's the relevant section from the introduction:

Adding your application preferences to the Settings application is most appropriate for productivity-style applications and in situations where you have preference values that are typically configured once and then rarely changed. For example, the Mail application uses these preferences to store the user’s account information and message-checking settings. Because the Settings application has support for displaying preferences hierarchically, manipulating your preferences from the Settings application is also more appropriate when you have a large number of preferences. Providing the same set of preferences in your application might require too many screens and might cause confusion for the user.

When your application has only a few options or has options that the user might want to change regularly, you should think carefully about whether the Settings application is the right place for them. For instance, utility applications provide custom configuration options on the back of their main view. A special control on the view flips it over to display the options and another control flips the view back. For simple applications, this type of behavior provides immediate access to the application’s options and is much more convenient for the user than going to Settings.

Update

The link has expired. This is a similar document on Settings bundles.