}
- (void)indentItemAtIndex:(int)index toLevel:(int)indentLevel {
id <NSMenuItem> theItem = [self itemAtIndex:index];
}
- (void)indentItemAtIndex:(int)index toLevel:(int)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);
- }
- }
+ if ([theItem respondsToSelector:@selector(setIndentationLevel:)]) {
+ [(id <_ITKitCategoryNSMenuItemPantherCompatability>)theItem setIndentationLevel:indentLevel];
+ } else {
+ MenuRef carbonMenu = [self menuRef];
+ if (carbonMenu) {
+ SetMenuItemIndent(carbonMenu, index + 1, indentLevel);
+ }
+ }
- MenuRef carbonMenu;
- int w00t, m00f;
-
- if ([self respondsToSelector:@selector(_menuImpl)]) {
- (void)[self _menuImpl];
- } else {
- return nil;
- }
-
- _NSGetMenuItemForCommandKeyEvent(self, NULL, &w00t, &m00f);
- carbonMenu = _NSGetCarbonMenu(self);
- return carbonMenu;
+ MenuRef carbonMenu;
+ int w00t, m00f;
+
+ if ([self respondsToSelector:@selector(_menuImpl)]) {
+ (void)[self _menuImpl];
+ } else {
+ return nil;
+ }
+
+ _NSGetMenuItemForCommandKeyEvent(self, NULL, &w00t, &m00f);
+ carbonMenu = _NSGetCarbonMenu(self);
+ return carbonMenu;