Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a Preference Pane?

How do I create a preference pane for my app on Mac. Also, how do I make a preferences section for my app in the iPhone?

like image 948
Anonymous Avatar asked Mar 19 '26 09:03

Anonymous


2 Answers

Your iPhone app needs a Settings bundle if you want to have your preferences in the system preferences.

http://developer.apple.com/iphone/library/samplecode/AppPrefs/index.html

You can create your own preferences view in your app on either platform. This is done by creating a view controller or window controller like you would any other view controller/window controller and you can use NSUserDefaults to store/retrieve the information you obtain from your user.

like image 66
Matt Long Avatar answered Mar 20 '26 23:03

Matt Long


To put settings inside your application you might want to consider mySettings, an open source (EPL) framework for doing much of the hard work. After making a small code contribution myself I decided against including the setting inside my app after all.

like image 21
Stephen Darlington Avatar answered Mar 20 '26 23:03

Stephen Darlington



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!