Hi,

The subject line says it all, really, I need to save a PDFSelection between 
sessions in my program, but there seems no way of doing this. A similar 
question came up on these last year but there was no solution:

http://www.cocoabuilder.com/archive/message/cocoa/2008/5/16/206893

(Or at least I couldn't get the one proposed solution to work well, as it 
doesn't account for selections that span multiple pages.)

The reason I'm trying to do this, incidentally, is that I'm trying to use 
PDFView's -setHighlightedSelections: to add quick and easy PDF highlighting to 
my app. The PDF file itself doesn't necessarily need to save this highlighting 
(although of course that would be better, I don't think that's possible going 
the -setHighlightedSelections: route), as it would be embedded in my app so my 
app could save the ranges - except that PDFSelection doesn't support encoding, 
and there is no obvious way to convert PDFSelections to NSRanges and back 
again, unfortunately.

Of course, if there is a better way of implementing PDF highlighting that I'm 
missing, please feel free to tell me point me in the direction of what I have 
overlooked. I have looked at the docs, the samples and searched the net before 
posting, though.

Many thanks in advance and all the best,
Keith


      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to