views:

27

answers:

0

I've got an application that needs to run on os x 10.6 and 10.5; there is an NSTableView that contains an NSPopUpButtonCell that is populated using an array controller. When a new item is created in the table I need to pop up the menu for the row entry automatically.

I was using the method performClickOnCellAtColumn:row: which produces the correct behavior on 10.6. I've tried using preparedCellAtColumn:row: then performClickWithFrame:inView: to implement the same behavior on 10.5 but it does not display the bound menu, rather a menu with only the property default selection for the new tableview object. Interestingly, the actual menu does "flicker" on the screen before the wrong menu is displayed.

I've also tried removing the menu from the cell, creating a new menu, populating it and then reattaching it before attempting to display it - with the same result, a menu with a single item.

Any ideas?

Ta.

Nick.