On Fri, May 15, 2009 at 6:41 AM, Steven Hamilton <o...@scorch.net> wrote: > Hmm, clearly I'm doing it all wrong. I assumed (from past problems) that the > delegate method can't return a value to an popup in a tableView and that you > use the opportunity of the method call to set the selectedIndex. I've now > changed the code to the standard;
NSTableView has a delegate method called -tableView:willDisplayCell:forTableColumn:row: that you can use to change the selected item in the NSPopUpButtonCell, or even replace the menu items in that cell. Relying on the order of calls to the -tableView:objectValueForTableColumn:row: data source method is prone to breakage, and causing KVO notifications inside of it is slow. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com