Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pointer to id






On 2 jan 2006, at 11.48, Sanri Parov wrote:

PortAudio has nothing to do with NSObject as it's a plain C bunch of functions that doesn't inherit from anything.

Where did you get the pointer to that stream? If it's owned by some object, pass that object. If it's a global variable, or something you can look up from a global function, don't pass anything at all.


On 2 jan 2006, at 12.08, Sanri Parov wrote:

[NSThread detachNewThreadSelector: @selector(playForSure:) toTarget: nil withObject:value];

The called selector is:

- (void)playForSure:(PortAudioStream *)stream;

but the selector is not called in any way.

Since you're sending the message to *nil*, that's not surprising at all...


Also, the method should now have this signature:

- (void) playForSure:(NSValue *) streamPtr;

j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

This email sent to email@hidden

References: 
 >Pointer to id (From: Sanri Parov <email@hidden>)
 >Re: Pointer to id (From: Pontus Ilbring <email@hidden>)
 >Re: Pointer to id (From: Sanri Parov <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.