objective c - toolbarSelectableItemIdentifiers: is not called -
i'm trying make selectable nstoolbaritems. i've connected correctly in ib, toolbarselectableitemidentifiers:
not working. doesn't called. delegate file's owner (subclass of nswindowcontroller), , toolbar in sheet. here's code:
// toolbar dlgt - (nsarray *)toolbarselectableitemidentifiers:(nstoolbar *)toolbar { nslog(@"foo"); nsmutablearray *arr = [[nsmutablearray alloc] init]; (nstoolbaritem *item in [toolbar items]) { [arr addobject:[item itemidentifier]]; } return [arr autorelease]; }
screenshot:
can me please?
no, don't want use bwtoolkit.
are positive toolbar's delegate outlet points class (or instance thereof) think does? other nstoolbar delegate methods called there (easy enough test)?
Comments
Post a Comment