• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Parsing PDF Content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Parsing PDF Content (From: John Goodman <email@hidden>)

  • Prev by Date: Parsing PDF Content
  • Next by Date: Re: Parsing PDF Content
  • Previous by thread: Parsing PDF Content
  • Next by thread: Re: Parsing PDF Content
  • Index(es):
    • Date
    • Thread