Don't use @encode with valueWithPointer. It takes an actual pointer,
not a pointer type. Also, you shouldn't retain value,
detachNewThreadSelector will take care of it. Use something like this:
PortAudioStream *stream;
/* put code to initialize stream here */
[NSThread detachNewThreadSelector: @selector(playForSure:)
toTarget:self withObject:[NSValue valueWithPointer:pas]];
assuming that the object which should handle the playForSure message
is self; otherwise, change it as needed.
pool = [[NSAutoreleasePool alloc] init];
stream = [streamValue pointerValue];
/* put your code here */
[pool release];
}
Camillo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden