-1
전에는 gcc
을 사용했고 다음과 같이 잘 작성되었습니다. 그러나 clang
을 사용하면 다음 오류가 발생합니다.왜 코드를 컴파일하지 않습니까?
MyWindow.mm:37:25: error: cannot initialize a parameter of type
'id<NSTextViewDelegate>' with an lvalue of type
'NSWindow *'
[textView setDelegate:win];
^~~
무슨 일입니까?