NSPopUpButton breaks in Snow Leopard
NSPopUpButton breaks in Snow Leopard
- Subject: NSPopUpButton breaks in Snow Leopard
- From: ALEXander <email@hidden>
- Date: Mon, 14 Sep 2009 00:11:19 +0200
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 (email@hidden)
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:
This email sent to email@hidden