How do I create a Preference Pane? - iphone

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?

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.

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.

For the Mac, you may wish to consult Apple's Preference Panes guide.

For Mac OS X, i would recommend my RHPreferences framework.
Available on GitHub. BSD Licensed.
Its a simple and easy Preferences window controller with multiple tabs for your next Mac application.
It also provides:
Auto resizing between different sized tab views (With animation)
Custom NSToolbarItem support
Persistence of the last used tab
Support for placeholder NSToolbarItems (eg NSToolbarFlexibleSpaceItemIdentifier & NSToolbarShowFontsItemIdentifier)

Related

Unable to display the GUI and versions of XCode

I am using XCode 4.3 and I am creating a tab bar application following an example in my book (likely used for XCode version < 4.3) but when I add a new tab and turn on check-mark to generate XIB file while adding a new file of Cocoa Touch, the GUI doesn't appear but display instead its generated XML file content. Do you know how to fix this ?
I find each time there is a new version of XCode, the Gui and defined functions seem to change a lot, doesn't this annoy for low programmers like me ? (By low, I mean newbies and those who can't keep up with such rapid changes). Thank you.
You can view my shot here
http://imageshack.us/photo/my-images/685/appleimg.png/
Right-click on the .xib file and choose Open as...
There will be a list of options. Currently you are using "Source Code", which displays as XML. Use Interface Builder - iOS instead.
This will be remembered between sessions. I don't know how it got set to this in the first place.
Alternatively, you may be in the Version editor instead of the Standard editor - this will show xibs as XML in order to correctly display changes.

How to develop interface like Eclipse using GTK?

I want a write a desktop application using GTKMM. I want the interface to be made of different panels like in Eclipse you have the Project Explorer, Console, Properties, etc. You should be able to drag the panels to change their position, close them and popout them (not sure if you can popout the panels in Eclipse but you can do it in Visual Studio).
I am using the word panels here as I am not sure what the right term is. I guess some call it dockable windows.
Any pointers on how this can be achieved in GTKMM?
The term is "docking" widgets and the GDL Library is the easiest way to get started with that. You may have seen GDL in action in applications like Anjuta and Inkscape. The documentation isn't that great, but, the source code includes a sample app and once you get going with it it's not that hard.
Basically, you add your widgets to a DockItem and those to a Dock. You put a DockBar somewhere in your application to which the docked items can be minimized. You can save and load the dock "layout" to XML files so that the user doesn't have to re-arrange the dock items every time they start the application.

Change my Settings language

I'm now translating my app. I've already translated every view and data inside the app but I've also some settings for the app in the Settings menu of the iPad. All of them are in Spanish and I would like to translate them depending of the language set on my app (or set at system settings, never mind). I'm attaching a little screenshot of my settings Screen.
How can I translate it?
Thanks!

Want tabbed window effect like in windows properties for I-Phone

I am new to i-phone development.
as per my project requirement i want a tabbed window browsing effect like the one you see in window-XP display properties or in IE internet options.
i have found that tab bar controller is there in iphone .
but that tab bar comes at the bottom..
i want it on the top.
looking for your support.
Thanks,
DSOXT
Ideally, you would follow UI convention. Different platforms work in different ways, and a tab bar on top is "strange" on a iOS (or even Android) device. Pounding Windows conventions (which are actually now relegated to history - tab bars are disappearing in Windows) into iOS is silly.
However, if you REALLY want to do this, this may work: UITabBar customization (untested by me)

Open UIPickerView by clicking on an entry in the app's preferences - How to?

I am wondering how and whether the UIPickerView can be opened due to the user's pushing of an entry in the app's preference pane.
Thank you !
I am speaking about iPhone Development.
If you mean your app's section in the iPhone's built-in Settings app, it's not possible.