Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bobber205

macrumors 68020
Original poster
Nov 15, 2005
2,183
8
Oregon
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:

Code:
<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?

Code:
<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.
 
You don't use literally "boolean" as a type/data pair. Instead you simply use:

Code:
<key>AllowNetworkAccess</key>
<true/>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.