popupbutton cell in an NSTableView displaying No Value

  • Hi,

    I'm displaying some names using popupbutton cell inside of table view.
    It's filled with data using bindings.
    The values to be displayed are returned from a procedure.
    The popups in the table view always starts always with "No value"...
    When i select something else in the popup, the "No Value" disappears.
    How can i get rid of this "No Value"?
    Do i need to explicity code something for this?

    Thanks and Regards,
    Vibhatha.
  • Seems this is a refreshing problem.

    Actually Tableview will automatically  refresh the cells. You can
    refresh popupbuttonCell externally by using - (void)tableView:
    (NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:
    (NSTableColumn *)aTableColumn row:(int)rowIndex delegate method.

    Better post your source, so that we can trace it out easily.

    On 12-Sep-07, at 11:01 AM, vibhatha v wrote:

    > Hi,
    >
    > I'm displaying some names using popupbutton cell inside of table view.
    > It's filled with data using bindings.
    > The values to be displayed are returned from a procedure.
    > The popups in the table view always starts always with "No value"...
    > When i select something else in the popup, the "No Value" disappears.
    > How can i get rid of this "No Value"?
    > Do i need to explicity code something for this?
    >
    > Thanks and Regards,
    > Vibhatha.
    >
  • Hi,

    I have an ISTModelList which have the values populated.
    This ISTModelList is associated with the pop up using bindings.
    If i display the values in this ISTModelList using NSLog, the values are
    displayed properly ( There is no "No Value" being displayed in the NSLog).
    But in the pop up, i can see a "No Value" being shown.
    What might be the issue?

    Regards,
    Vibhatha.

    On 9/12/07, apparao <apparao...> wrote:
    >
    > Seems this is a refreshing problem.
    >
    > Actually Tableview will automatically  refresh the cells. You can
    > refresh popupbuttonCell externally by using - (void)tableView:
    > (NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:
    > (NSTableColumn *)aTableColumn row:(int)rowIndex delegate method.
    >
    > Better post your source, so that we can trace it out easily.
    >
    >
    > On 12-Sep-07, at 11:01 AM, vibhatha v wrote:
    >
    >> Hi,
    >>
    >> I'm displaying some names using popupbutton cell inside of table view.
    >> It's filled with data using bindings.
    >> The values to be displayed are returned from a procedure.
    >> The popups in the table view always starts always with "No value"...
    >> When i select something else in the popup, the "No Value" disappears.
    >> How can i get rid of this "No Value"?
    >> Do i need to explicity code something for this?
    >>
    >> Thanks and Regards,
    >> Vibhatha.
    >>
    >
    >
  • on 9/12/07 8:46 PM, <vibhata.v...> purportedly said:

    > I have an ISTModelList which have the values populated.
    > This ISTModelList is associated with the pop up using bindings.
    > If i display the values in this ISTModelList using NSLog, the values are
    > displayed properly ( There is no "No Value" being displayed in the NSLog).
    > But in the pop up, i can see a "No Value" being shown.
    > What might be the issue?

    It usually means the binding for the current selected item (such as
    "selectedObject, selectedValue, etc") is either: 1) returning a nil value or
    2) returning an object that doesn't correspond to the bound controller's
    content. In other words, for "selectedObject" for instance, the object
    returned by the binding must exist in the bound content, and not just
    equivalently but the *exact same object*.

    In the case of #1, a nil value may be acceptable, in which case you need to
    supply a nil value placeholder so it shows something more informative.

    Best,

    Keary Suska
    Esoteritech, Inc.
    "Demystifying technology for your home or business"
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today