Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Why would you expect it to send you delegate messages if you aren't (yet) its delegate? If you want it to send you delegate messages, then you need to set yourself as its delegate.</p> <blockquote> <p>I tried calling a <code>setDelegate</code>, but get warned about impending doom if I continue down that route...</p> <blockquote> <p>[QL] <code>QLError()</code>: <code>-[QLPreviewPanel setDelegate:]</code> called while the panel has no controller - Fix this or this will raise soon. See comments in QLPreviewPanel.h for <code>-acceptsPreviewPanelControl:</code>/<code>-beginPreviewPanelControl:</code>/<code>-endPreviewPanelControl:</code>.</p> </blockquote> </blockquote> <p>“No controller”, it says. So, you need it to have a controller.</p> <p>The comments on that header, particularly on <code>acceptsPreviewPanelControl:</code> and the QLPreviewPanel instance method <code>updateController</code>, suggest that the panel's controller, when it has one, is an object that is in the responder chain. Therefore, if your controller is not becoming the panel's controller, it's because your controller isn't in the responder chain.</p> <p>So, fix that, and then it'll work.</p> <p>I would imagine that your view controller should be in the responder chain whenever its view or any subview thereof is in the responder chain, but maybe this isn't the case. <a href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/NSViewController_Class/" rel="noreferrer">The documentation</a> doesn't say. If all else fails, set yourself as some view's next responder explicitly (and its previous next responder as your next responder), then send the preview panel an <code>updateController</code> message.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload