如何从我的应用程序启动我的设置包? [英] How do I launch my settings bundle from my application?

查看:112
本文介绍了如何从我的应用程序启动我的设置包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的应用程序添加一个设置包,作为一个便宜的方式来获得我的首选项的GUI。是否可以通过应用程序中的按钮启动它,或者我的用户总是必须通过内置设置应用程序手动访问它吗?

解决方案



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


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



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


更新



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


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.

这篇关于如何从我的应用程序启动我的设置包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆