'Count'에 해당되는 글 1건

  1. 2011.09.27 [iphone] 디버깅상태에서 retain count를 보고 싶을때...
iPhone App2011. 9. 27. 15:54
XCode의 디버거에서는 변수의 retain count를 볼 수가 없어서 불편한데요, 디버깅 중에 볼 수 있는 방법이 없지는 않습니다. gdb의 디버깅 콘솔을 띄워서 다음과 같이 입력하면 theObj의 retain count 가 출력됩니다.

print (unsigned int)[theObj retainCount]
Posted by 동동(이재동)