> I am not copying the NSString correctly into my sendBuffer apparently - am I > missing something obvious here?
you're not using pixelBuffer at all. Careful with memcpy into sendBuffer - that'll start at the beginning of the buffer. This: > // now end the buffer > NSString* endString = @"end"; > //[sendBuffer appendData:[endString > dataUsingEncoding:NSASCIIStringEncoding]]; > > memcpy(sendBuffer, &endString, 3); is totally wrong. endString is _NOT_ a C string, it's an objc object. memcpy from it is meaningless (you're copying 3 bytes of the ivars of an NSString, which isn't the string value you're looking for). you should just use a real C string (const char *endString = "end";) and be done with it. -- Christopher Wright christopher_wri...@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com