Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

plist file

Hi,


I have created an html file with .js files and also .css files. When I drop the widget into iBooks, it tells me I do not have a defined main HTML file. In the .plist file, I have defined it. Any ideas?

iPad, OS X Mountain Lion (10.8.2), Using IBook Author 3

Posted on Mar 13, 2013 3:30 PM

Reply
Question marked as Best reply

Posted on Mar 20, 2013 11:06 AM

You need to package your widget using dashcode where you have your main.html and your plist files as well as any CSS and JS you need to run the widget. See this page for more info on HTML widgets:


http://support.apple.com/kb/HT5068

3 replies

Mar 20, 2013 11:24 AM in response to Gregg42

Can you show that plist here?


Example from Apple:

<?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>CFBundleDevelopmentRegion</key>

<string>English</string>

<key>CFBundleDisplayName</key>

<string>Hello World</string>

<key>CFBundleIdentifier</key>

<string>com.apple.widget.HelloWorld</string>

<key>CFBundleName</key>

<string>Hello World</string>

<key>CFBundleShortVersionString</key>

<string>1.0</string>

<key>CFBundleVersion</key>

<string>1.0</string>

<key>Height</key>

<integer>768</integer>

<key>MainHTML</key>

<string>HelloWorld.html</string>

<key>Width</key>

<integer>1024</integer>

<key>IBNotifiesOnReady</key>

<true/>

</dict>

</plist>

Mar 20, 2013 11:19 AM in response to K T

Gregg42: Please post your plist content as suggested by K T


Here's the one I use for all my widgets:

<?xmlversion="1.0"encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC"-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plistversion="1.0">

<dict>


<!-- Modify these properties as desired -->


<key>Width</key>


<integer>1024</integer>


<key>Height</key>


<integer>768</integer>


<key>MainHTML</key>


<string>main.html</string>



<!-- These are required, but have no user-facing effect -->

<key>CFBundleDevelopmentRegion</key>


<string>English</string>

<key>CFBundleIdentifier</key>

<string>com.niceoak.widgettemplate</string>

<key>CFBundleName</key>

<string>iBooks HTML Widget template</string>

</dict>

</plist>

plist file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.