site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=zMg2UIggIWXPBPRwGJ4SiM2D5zq4GOplAgznCCcu4OA=; b=HfIfDa/sYhcZku3EgMxmEZIA50k42migxgdMJ5DCju8gOGE3ZlU5XPdp4guQ10c5mB F/OsusFE9EyB7Gp4zwkHGe9bvWrx5IJwaR85ncz42HbvEwNPiSYbBfgL0ioJWtfs5pDm Lb3Bj99vyOUjFM/1ZQjL7/CRGEfnaH0uw6YSg= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=OG6rN+vW6da7eHZQjsFG8Js688soWH48cCFI3nRIuLdMtfClrcsdKc69qXZwA6W5Av cqP4Mru+fSI0SkX4sjbJxY6+dmwmxSwTHo/KdUJsxdJ3zZ2Mdkey7MdR5NahbCfokshT VlwvyEt2SFVyUbdZDILKqudir2aet3OXFWa4I=
Back to the problem as seen at the top of the message: but what I don't need is a copy of my data; I don't mind a different CFRef as long as it points to the raw storage that I've put in.
We're running in circles, but I'm not sure who's misunderstanding who. Let me try again: Thread A has a CFMutableArray - myArray - that contains 5 CFStrings. Thread A sends a message to thread B with a CFData - myData - that encapsulates the pointer that is myArray. (Therefore on 32-bit, myData will be 4 bytes long, whereas on 64-bit myData will 8 bytes long.) When thread B receives this message, it will extract this pointer out of the CFData object. Voila! Thread B now has a pointer to the exact same myArray that thread A has. If thread A decides to add another object to myArray, thread B will see this change to myArray, because it's the exact same array. (This is of course neglecting the thread-safety.) If that all makes sense and I'm the one misunderstanding, let me know and I'll be happy to shutup. :) _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com