• 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: [PDFDocument documentRef] internal method questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PDFDocument documentRef] internal method questions.


  • Subject: Re: [PDFDocument documentRef] internal method questions.
  • From: John Calhoun <email@hidden>
  • Date: Mon, 14 Jul 2008 13:07:29 -0700

On Jul 14, 2008, at 9:04 AM, Kevin Ross wrote:
In my subclassing PDFDocument adventures I wanted to add a method to my subclass like so:

- (CGPDFDocumentRef)documentRef;

I realized that it was overriding an internal PDFDocument method that I was unaware of. This actually helps a big performance bottleneck in the application because I can use it instead of creating my own docRef from scratch each time. What I'm not sure about though is how safe I am using this in my application since it might break on future OS updates. I'm planning on filing an enhancement request since it is useful to be able to get a CGPDFDocumentRef directly from a PDFDocument object. How safe am I using this method in my application?

Hmmm.... Best of course to check for the symbol and have a fallback (presuably though a slower fallback method). But I believe you'll find the symbol you found exists back to Tiger and may be made public in SnowLeopard. It is something PDF Kit could benefit from — I just need to make sure the headers don't break (since we'd be declaring a CoreGraphics type in essentially a Cocoa-universe header).


So, be safe, but stay tuned.

John Calhoun—_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >[PDFDocument documentRef] internal method questions. (From: Kevin Ross <email@hidden>)

  • Prev by Date: Re: Rounded NSWindow corners?
  • Next by Date: Re: What is the best way?
  • Previous by thread: [PDFDocument documentRef] internal method questions.
  • Next by thread: How to detect NSTextAttachment deletion
  • Index(es):
    • Date
    • Thread