Objective c 与NSView通信时出现问题

Objective c 与NSView通信时出现问题,objective-c,xcode,macos,powerpc,osx-tiger,Objective C,Xcode,Macos,Powerpc,Osx Tiger,我已经设置了一个NSObject来控制几个NSWindows。其中一个NSWindows包含自定义NSView。我需要告诉NSView运行一个方法,但是视图不会这样做。Xcode 2.5告诉我对象可能不会响应我调用的方法,下面是代码: MenuController.m #import "MenuController.h" int gameOn = 0; //variable for if the game is running ATM @implementation MenuControll

我已经设置了一个NSObject来控制几个NSWindows。其中一个NSWindows包含自定义NSView。我需要告诉NSView运行一个方法,但是视图不会这样做。Xcode 2.5告诉我对象可能不会响应我调用的方法,下面是代码:

MenuController.m

#import "MenuController.h"

int gameOn = 0; //variable for if the game is running ATM

@implementation MenuController

-(void)playIt{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    [NSThread detachNewThreadSelector:@selector (callGameView) toTarget:self withObject:nil]; //make a new thread for the game window
    if (gameOn == 0){
        [menuWindow orderOut:self];
        [NSApp activateIgnoringOtherApps:YES]; //set up the game window as the visable window, set focus on it
        gameOn = 1;
        [gameWindow makeFirstResponder: MainView];
        [gameWindow makeKeyAndOrderFront:self];
    }
    while(gameOn != 0){ //initiate the game loop
    //the game loop
        [self callGameView];
    }
    [pool release];
}

-(void)callGameView{ //call for the game loops primary interactions with the game view
    [MainView gameLoop];
}
菜单控制器

#import <Cocoa/Cocoa.h>
#import "GameView.h"

@interface MenuController : NSObject {

    IBOutlet id menuWindow; //outlet for this window (show hide, ect)
    IBOutlet id gameWindow; //the games window
    IBOutlet GameView *MainView; //the game view


}

你真的在使用Xcode 2.5吗?最新的(非测试版)版本是8.2.1。我的手已经被强迫了,让我们说,在接下来的一个月左右,我只有一个运行OSX 10.4.11的Emac,1GB内存,一个40GB硬盘驱动器和一个Airport 1卡。是的,我确实在使用2.5,但是这并不能解决我的问题。好的,在视图头文件中定义了有问题的方法后,警告消失了,这意味着我的窗口控制器现在知道它存在,但是它仍然拒绝调用方法,并且没有给出错误或原因。
-(void)gameLoop{
    NSLog(@"Its ALIVE!");
}