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

Failed to load Dynamic list in Dashcode

Discussion in 'Mac Programming' started by bananasims, Sep 24, 2008.

  1. macrumors newbie

    #1
    I have just install the newest version of Dashcode (2.0.1) and developing a dashboard widget.

    I have added a list from the parts library and using the inspector to configure it. However, I set an array list as the source and it doesn't show up when I run it, even I choose the localized strings as the source, it remains hidden.

    I have tried to use
    Code:
    list.reloadData()
    ,
    Code:
    list.setDataSource(localizedStrings)
    as the documents said but it returns undefined.

    Here is the innerHTML of the list
    Code:
    "<li id=\"listRowTemplate\" apple-template=\"true\" class=\"listRowTemplate_template\" style=\"visibility: hidden; display: none; \">
                                <div id=\"label\" apple-part=\"com.apple.Dashcode.part.text\" class=\"apple-text apple-no-children label_template\" apple-text-overflow=\"ellipsis\">Item</div>
    
    Thx
     

Share This Page