Re: NSPopUpButton breaks in Snow Leopard

2009-09-15 Thread ALEXander
Hi, actually, I used the binding to the Content fields of NSPopUpButton because the possible selection that has to be displayed in the PopUp changes dynamically. Otherwise I could just have set the menu in IB. I put a breakpoint on controlTypes and it does return an NSArray filled with

[SOLVED] NSPopUpButton breaks in Snow Leopard

2009-09-15 Thread ALEXander
Well, it seems that I forgot to post KVO notifications. But it worked in Leopard, I swear. It seems that in Leopard when a KVO notification is posted for a popup button selection, the menu values are reloaded as well automatically. This does not happen in SL anymore. At least that's my

NSPopUpButton breaks in Snow Leopard

2009-09-14 Thread ALEXander
Hello, on Leopard I used the following construct for providing the items in an NSPopUpButton: 1) in the File's Owner class I defined a function returning an NSArray: - (NSArray*) controlTypes { if ([[self selectedControls] count]) { NSArray *returnArray = [NSArray

Re: NSPopUpButton breaks in Snow Leopard

2009-09-14 Thread Quincey Morris
On Sep 13, 2009, at 15:11, ALEXander wrote: 1) in the File's Owner class I defined a function returning an NSArray: - (NSArray*) controlTypes { if ([[self selectedControls] count]) { NSArray *returnArray = [NSArray arrayWithArray:self selectedControls] objectAtIndex:0]

Re: NSPopUpButton breaks in Snow Leopard

2009-09-14 Thread ALEXander
Hello, please excuse the lousy error description. I must have been in a mood. What does not work is that no menu items are displayed. The function correctly returns an NSArray containing NSStrings. But despite of the bindings the menu is always empty. What do you mean by KVO compliant? I

Re: NSPopUpButton breaks in Snow Leopard

2009-09-14 Thread Quincey Morris
On Sep 14, 2009, at 14:07, ALEXander wrote: What do you mean by KVO compliant? I already have added a setControlTypes function, this was not necessary in Leopard and also does not fix the bug in Snow Leopard. On Sep 13, 2009, at 15:11, ALEXander wrote: 1) in the File's Owner class I defined