• 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: refresh issue with QLPreviewPanel..!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: refresh issue with QLPreviewPanel..!


  • Subject: Re: refresh issue with QLPreviewPanel..!
  • From: Julien Jalon <email@hidden>
  • Date: Mon, 31 Aug 2009 21:46:14 +0200

Needless to say that what you do is totally unsupported and will
totally break in 10.6.

10.6 now provides a public (incompatible with Leopard) API but even
with this API, what you do is greatly unsupported (and will break in
the future). Add to that the fact QL panel is very asynchronous, and
it's expected for you to encounter a *lot* of problems.

--
Julien

On Monday, August 31, 2009, Naresh Kongara
<email@hidden> wrote:
> Hi,
>
> I have  an app in which i need to display the view to be printed in QuickLook preview. For this i thought os using the (QlPreviewPanel)QuickLookUI.framework which is available at /System/Library/PrivateFrameworks.
>
> QLPreviewPanel class is obtained using
>
> #define QLPreviewPanel NSClassFromString(@"QLPreviewPanel")
>
> and the QuickLookUI framework is loaded as below.
>
> [[NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
>
> Using NSPrintOperation i'm saving the View to be printed a path say PDFPath.
> Then i'm passing the PDFPath URL to previewPanel as below.
>
>                 [[QLPreviewPanel sharedPreviewPanel] setURLs:[NSArray arrayWithObject:[NSURL fileURLWithPath:PDFPath]]];
>                 [[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFront:self];
>
>
> The above code is working fine for the first time. If i close the panel  and change the view to be printed(Which inturn changes the file  at PDFPath).Now if the panel is shown again with above 2 lines of code then the panel is not showing the updated one, it is showing the previous view only.
> If we wait for some time to show the panel, then it is showing the correct view only.
> There is no problem with file at PDFPath.
> I don't know why the preview panel is taking the time to refresh.
>
> If any one has the idea on it, Please let me know.
>
>
>
>
>
> Thanks,
> Naresh Kongara
> email@hidden
>
>
>
>
> _______________________________________________
>
> 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)http://lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

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

  • Follow-Ups:
    • Re: refresh issue with QLPreviewPanel..!
      • From: Naresh Kongara <email@hidden>
References: 
 >refresh issue with QLPreviewPanel..! (From: Naresh Kongara <email@hidden>)

  • Prev by Date: Re: Why would NSViewController loadView fail?
  • Next by Date: Re: Why would NSViewController loadView fail?
  • Previous by thread: refresh issue with QLPreviewPanel..!
  • Next by thread: Re: refresh issue with QLPreviewPanel..!
  • Index(es):
    • Date
    • Thread