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 arrayWithArray:[[[[self selectedControls] objectAtIndex:0] configTypes] allKeys]];
                return returnArray;
        } else {
                return nil;
        }
}


2) In the NIB, I made an NSPopUpbutton and bound Content, Content Objects and Content Values all to File's Owner with the model key path controlTypes.

This does not work any more in Snow Leopard. Any ideas what I have to change to make it work again?

Thanks and best,
ALEXander.

_______________________________________________

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

Reply via email to