Skip to content

Instantly share code, notes, and snippets.

@zetachang
Created November 19, 2012 15:37
Show Gist options
  • Select an option

  • Save zetachang/4111314 to your computer and use it in GitHub Desktop.

Select an option

Save zetachang/4111314 to your computer and use it in GitHub Desktop.

Revisions

  1. zetachang revised this gist Nov 19, 2012. 1 changed file with 6 additions and 8 deletions.
    14 changes: 6 additions & 8 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    * To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    * To add Settings.bundle in Xcode. __Command N__ and in __Resource__, choose __Settings Bundle__ .
    * Open `Root.plist` in source code, paste the code below to replace it,

    ```xml
    @@ -35,13 +35,11 @@
    <plist version="1.0">
    <dict>
    <key>StringsTable</key>
    <string>Acknowledgements</string>
    <key>Title</key>
    <string>License</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Title</key>
    <string>Acknowledgements</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Title</key>
    <string>
    XXXKit is available under the MIT license.

  2. zetachang revised this gist Nov 19, 2012. 1 changed file with 14 additions and 8 deletions.
    22 changes: 14 additions & 8 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    1. To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    2. Open `Root.plist` in source code, paste the code below to replace it,
    * To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    * Open `Root.plist` in source code, paste the code below to replace it,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    @@ -21,11 +22,12 @@
    </dict>
    </plist>
    ```
    3. Right click `Settings.bundle`, choose __Open in Finder__.
    4. In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    5. __Command D__ to duplicate the `Root.plist`.
    6. Rename the duplicated one to `Acknowledgements.plist`.
    7. Back to Xcode, open `Acknowledgements.plist` in source code, and replace the content with code below,

    * Right click `Settings.bundle`, choose __Open in Finder__.
    * In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    * __Command D__ to duplicate the `Root.plist`.
    * Rename the duplicated one to `Acknowledgements.plist`.
    * Back to Xcode, open `Acknowledgements.plist` in source code, and replace the content with code below,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    @@ -71,4 +73,8 @@ THE SOFTWARE.
    </plist>
    ```

    The big chunk of data is the place you can place your long long third party license.
    The big chunk of data above in string tag is the place you can place your long long third party license.

    * Finally in the `Settings.app`, we got the license section as Apple did in a lot of apps.

    ![License in Settings.app](http://d.pr/i/Wjib+)
  3. zetachang revised this gist Nov 19, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    1. To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    2. Open `Root.plist` in source code, paste the code below to replace it,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    @@ -22,7 +21,6 @@
    </dict>
    </plist>
    ```

    3. Right click `Settings.bundle`, choose __Open in Finder__.
    4. In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    5. __Command D__ to duplicate the `Root.plist`.
  4. zetachang revised this gist Nov 19, 2012. 1 changed file with 52 additions and 0 deletions.
    52 changes: 52 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -22,3 +22,55 @@
    </dict>
    </plist>
    ```

    3. Right click `Settings.bundle`, choose __Open in Finder__.
    4. In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    5. __Command D__ to duplicate the `Root.plist`.
    6. Rename the duplicated one to `Acknowledgements.plist`.
    7. Back to Xcode, open `Acknowledgements.plist` in source code, and replace the content with code below,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>StringsTable</key>
    <string>Acknowledgements</string>
    <key>Title</key>
    <string>License</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Title</key>
    <string>
    XXXKit is available under the MIT license.

    Copyright (c) 2012 ZZZ

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    </string>
    <key>Type</key>
    <string>PSGroupSpecifier</string>
    </dict>
    </array>
    </dict>
    </plist>
    ```

    The big chunk of data is the place you can place your long long third party license.
  5. zetachang revised this gist Nov 19, 2012. 1 changed file with 23 additions and 2 deletions.
    25 changes: 23 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,24 @@
    # Add Settings.bundle
    1. To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    2. Open `Root.plist` in source code, paste the code below to replace it,

    1. __Command N__, choose __Resource__
    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Type</key>
    <string>PSChildPaneSpecifier</string>
    <key>File</key>
    <string>Acknowledgements</string>
    <key>Title</key>
    <string>Acknowledgements</string>
    </dict>
    </array>
    <key>StringsTable</key>
    <string>Root</string>
    </dict>
    </plist>
    ```
  6. zetachang created this gist Nov 19, 2012.
    3 changes: 3 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Add Settings.bundle

    1. __Command N__, choose __Resource__