Re: Parsing PDF Content
Re: Parsing PDF Content
- Subject: Re: Parsing PDF Content
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 10 Jan 2007 14:02:26 -0500
On Jan 10, 2007, at 1:38 PM, John Goodman wrote:
I could use the "void *info" parameter to pass a "this" pointer,
but I don't see any way for me to set up this value. Can I set the
pointer value myself? If so, how?
Perhaps you're thinking it's more complicated than it is. It just
means you get to pass whatever you want, as long it's the size of a
(void *) ptr.
So for instance, you can pass "self" and then in your callback
function, cast the ptr argument:
MyObject* mySelfReference = (MyObject*) info;
Hope this helps,
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden