Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

QuickLook by the fly generation (RTF)

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  nireport and nicl  
Author Message
Florian Zschocke2

External


Since: Mar 29, 2004
Posts: 220



(Msg. 1) Posted: Fri Feb 08, 2008 3:56 pm
Post subject: QuickLook by the fly generation (RTF)
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hallo NG,

I have some problems to generate a preview for Quicklook.
The example:
http://developer.apple.com/documentation/UserExperience/Conceptual/Qui...ook_Pro
is not working for me. By the way, I also don't understand why the last byte of
the attributed string has to be stripped. But that is not my real problem.
I my code I do nearly the same like in the example, but I get an exception:

#0 0x93cea114 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ 
.... 
#3 0x91a534a3 in -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] 
 
A short description what I do in GeneratePreviewForURL. 
I use NSUnarchiver to get my document from the path. 
(perhaps that is the  problem). 
In my document I have a function -(NSAttributedString*)contentAsRFTD to  
generate a RFTD-String. This is converted to a cfdataref and processed by  
the QLPreviewRequestSetDataRepresentation()function. 
Everything until this function call seems to work fine. I get the document,  
the and Attributed string, but the function quits with this exception.

TIA Florian

 >> Stay informed about: QuickLook by the fly generation (RTF) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
QuickLook project 1333 Errors - Hello NG, I started today to write a QuickLook plugin for my app. It somehow dose not like my header files and I don't know why. I do nothing else than in the QuickLookSketch-example. When I try to compile it steps into my header file than into..

memory leaking in 10.2.8? - Hi groups, I have a question concerning the memory management in the OS X (10.2.8 to be exact). Either I don't understand the way it works or there is something like major memory leak in the version I referred to (I haven't noticed it with previous..

Question about Bindings and Archiving - I'm referring to the tutorial "Enhanced Currency Converter" (from ADCHome > Documentation > Cocoa > Design Guidelines > Cocoa Bindings. I did it . Works great. Now I'm trying to make it save and open files (since it is based on an N...

Post encodeWithCoder stall? (archiving large graphs part 3) - In order to save large and tangled graphs without getting recursive unarchiving I decided to take the graph apart and archive it in the form of a series of linear arrays. What I have now are two linear arrays holding the elements of the graph. The..

Problem under Panther with NSView: dataWithEPSInsideRect a.. - Hi, our problem comes down to this: We do some painting in a custom view (lines and such) and also have some text (via NSFont -fontWithName and -drawAtPoint). The data is then pulled from the view with dataWithEPSInsideRect and written to an EPS file....
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]