1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Widget Access Keys Help Badly Needed :)

Discussion in 'Mac Programming' started by bobber205, Sep 17, 2006.

  1. macrumors 68020

    bobber205

    #1
    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.
     
  2. macrumors 6502a

    Sayer

    #2
    You don't use literally "boolean" as a type/data pair. Instead you simply use:

    Code:
    <key>AllowNetworkAccess</key>
    <true/>
     

Share This Page