Fixing some build errors related to return types from undefined methods
[ITKit.git] / ITCategory-NSMenu.m
index ad3904e..ec59bb1 100755 (executable)
@@ -30,8 +30,8 @@ extern MenuRef _NSGetCarbonMenu( NSMenu *menu);
 }
 
 - (void)indentItemAtIndex:(int)index toLevel:(int)indentLevel {
 }
 
 - (void)indentItemAtIndex:(int)index toLevel:(int)indentLevel {
-    if ([NSMenuItem respondsToSelector:@selector(setIndentationLevel:)]) {
-        [[self itemAtIndex:index] setIndentationLevel:indentLevel];
+    if ([[self itemAtIndex:index] respondsToSelector:@selector(setIndentationLevel:)]) {
+        (void)[[self itemAtIndex:index] setIndentationLevel:indentLevel];
     } else {
         MenuRef carbonMenu = [self menuRef];
         if (carbonMenu) {
     } else {
         MenuRef carbonMenu = [self menuRef];
         if (carbonMenu) {
@@ -45,7 +45,7 @@ extern MenuRef _NSGetCarbonMenu( NSMenu *menu);
     int w00t, m00f;
     
     if( [self respondsToSelector:@selector(_menuImpl)] ) {
     int w00t, m00f;
     
     if( [self respondsToSelector:@selector(_menuImpl)] ) {
-        [self _menuImpl];
+        (void)[self _menuImpl];
     } else {
         return nil;
     }
     } else {
         return nil;
     }