Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No 'Child Pane' option in settings bundle root

I've added a settings bundle to the app using Xcode 6.3.1. According to the documentation I should be able to create hierarchical structure by adding the 'Child Pane' key (PSChildPaneSpecifier) to a .plist file (Root.plist in my case).

Unfortunately, there's no such option in the drop-down menu (I have not enough reputation to post the screenshot, sigh) — I get all the other options mentioned in the docs, though. Did anyone experience similar problems? Thanks in advance!

like image 240
Daniil Korotin Avatar asked Apr 30 '15 13:04

Daniil Korotin


1 Answers

Child pane is not available as a drop down option. You need to add it manually to the Preference Items array in Root.plist. The type should be PSChildPaneSpecifier. This became Child Pane automatically for me.

Type        String        Child Pane
Title       String        Your title here
Filename    String        fileName

The fileName should not include a path or .plist extension.

Next you need to add the new file for the nested layer of settings. From the File menu add a new plist file and ensure it is in your settings bundle.

Then Ctrl+click in the editor pane -> Property List Type -> iPhone Settings Plist.

Add a row for Preference Items and set it as an array. Then add your dictionaries for each item nested inside this. You can copy the default Root.plist for the structure.

You can find more information from Apple here.

like image 137
Chris Avatar answered Sep 28 '22 12:09

Chris