- if ([[self itemAtIndex:index] respondsToSelector:@selector(setIndentationLevel:)]) {
- (void)[[self itemAtIndex:index] setIndentationLevel:indentLevel];
- } else {
- MenuRef carbonMenu = [self menuRef];
- if (carbonMenu) {
- SetMenuItemIndent(carbonMenu, index + 1, indentLevel);
- }
- }
+ id <NSMenuItem> theItem = [self itemAtIndex:index];
+ if ([theItem respondsToSelector:@selector(setIndentationLevel:)]) {
+ [(id <_ITKitCategoryNSMenuItemPantherCompatability>)theItem setIndentationLevel:indentLevel];
+ } else {
+ MenuRef carbonMenu = [self menuRef];
+ if (carbonMenu) {
+ SetMenuItemIndent(carbonMenu, index + 1, indentLevel);
+ }
+ }