내가 클래스 RandomGenerator을 무시했다. 나는 파일 GuessTheNumberAppDelegate.m에서 RandomGenerator 객체를 할당 :값
#import "GuessTheNumberAppDelegate.h"
#import "RandomGenerator.h"
@implementation GuessTheNumberAppDelegate
@synthesize window;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSAutoreleasePool* pool=[[NSAutoreleasePool alloc]init];
RandomGenerator* random=[[RandomGenerator alloc]init];
[pool drain];
}
@end
그리고 인터페이스 빌더에서 연결을 만들었습니다 :
하지만 NSTextField있는 내용입니다 변경되지 않은, 그것은 동일하게 나타납니다, 왜 이것을? -[RandomGenerator init]
에서
덕분에 많은 도움을주었습니다. –