之后,我收到了,该指南。
Whereas I sincerely failed to understand what it says at point 13, I just have opened the pane of the inspector, but it doesn t say what attributes to set. However, I have copied and pasted the code in the proper classes. But it appears a normal window, without the triangle draw, just like when I make a normal program in Objective-C having an empty window.
Edit:
我认为,问题在于窗户的初始化,因此,我撰写了一种觉醒基金从尼伯开始的方法:
- (void) awakeFromNib
{
NSRect rect=NSMakeRect(100.0, 100.0, 100.0, 100.0);
[self drawRect: rect];
}
但是,在第一项指示中, Rect I have an EXC_BAD_ 缩略语
glClearColor(0, 0, 0, 0);
Maybe the window is not initialized properly?