How can I pass a class as argument to a thread using NSThread. In windows I was doing something like:
DWORD WINAPI threadFunc(LPVOID mpThis) {
MYCLSS *pThis = reinterpret_cast<MYCLSS*>(mpThis);
....
void MYCLSS::func() {
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)threadFunc, (void*)this, 0, NULL);
....
For Mac I have not found any examples of this kind. Please help me
I found the solution, it can be like windows