views:

7

answers:

0

Hi everyone, I have an NSTableView which represents a list of objects. One of the variables in the represented object is selected from a drop-down NSPopUpButtonCell (it's a cell because it's in the table view) - an NSArrayController which holds some NSManagedObjects.

The "Selected Object" for the column (in IB) is bound to the array controller's arranged object's selected source object. On instantiation of the property, this is nil.

When the program is loaded and the NSPopUpButtonCell is clicked, it correctly displays that no object has been selected. It correctly displays the available options in the NSArrayController. However, it also displays two empty options. When debugging, the selection is nil when these are selected. Also, the bottom-most empty option is always (re)selected when either empty option is selected.

When a non-empty selection is made in the NSPopUpButtonCell, the underlying object's selected source object is correctly set. Additionally, the empty items disappear at that point.

I have checked that all the "Inserts Null Placeholders" are de-selected.

I'm sorry if this doesn't make sense to anyone out there or is redundant. I've done my best to look up some relevant information on the Goog, but to no avail. I appreciate your response.