PDA

View Full Version : Widget Access Keys Help Badly Needed :)




bobber205
Sep 17, 2006, 01:18 PM
I made a widget (yay! first one!) that gets a rss feed via XMLHttpRequest. It works just fine in browsers. I'm so happy.

But when I made it a widget, it fails to load the data. I just get my default message that's "supposed" to be replaced by real data.

I did some research and as it turns out, I need to have accces keys in my plist file. That was easy.

I added this:


<key>AllowNetworkAccess</key>

<boolean>True</boolean>

Now my widget won't launch, says it's invalid, and I can't open the plist file in Property List Editor anymore?

Why?


<key>AllowNetworkAccess</key>

<boolean>True</boolean>

<key>CFBundleDisplayName</key>

<string>Armitunes.com Widget</string>

<key>CFBundleIdentifier</key>

<string>com.alexwait.widget.armitunes</string>

<key>CFBundleName</key>

<string>Armitunes.com Widget</string>

<key>CFBundleShortVersionString</key>

<string>0.1</string>

<key>CFBundleVersion</key>

<string>0.1</string>

<key>CloseBoxInsetX</key>

<integer>16</integer>

<key>CloseBoxInsetY</key>

<integer>14</integer>

<key>MainHTML</key>

<string>main.html</string>

<key>Height</key>
<integer>196</integer>
<key>Width</key>
<integer>500</integer>



That's what "works".

Thanks for any help.



Sayer
Sep 17, 2006, 03:40 PM
You don't use literally "boolean" as a type/data pair. Instead you simply use:

<key>AllowNetworkAccess</key>
<true/>