[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSPopUpButton behaviour
From: |
Enrico Sersale |
Subject: |
NSPopUpButton behaviour |
Date: |
Fri, 7 Sep 2001 14:46:59 +0300 (EEST) |
With the last cvs, a strange behaviour has appeared.
Selecting a item from a NSPopUpButton, I get:
NSInvalidArgumentException: NSMenuItem does not recognise
titleOfSelectedItem
Some items are dimmed, too.
If I change the code to use, instead of titleOfSelectedItem, title, the
problem disappears.
This is very strange, because, it is the NSPopUpButton object that has
that taget and action, not its items...
Moreover, if I use this code:
- (void)showAttributes
{
[inspectorsPopUp selectItemWithTitle: NSLocalizedString(@"Attributes",
@"")];
[self activateInspector: inspectorsPopUp];
}
it works both with titleOfSelectedItem and with title.
Any suggestion?
Enrico
- NSPopUpButton behaviour,
Enrico Sersale <=