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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]