I am trying to get Quicklook working in an app of mine. I'm not sure all these details are relevant, but better to have more than less info. I have a table that shows the number of files in certain folders on a network volume. In one column is the number of files, another column shows the first couple files names, as a string that was concatenated. My data object for each row has an array that stores NSURL's of all of the files. I want the quicklook to show previews for all the files in the folder.
So far I am successful in storing the NSURL's and to retrieve them. When I bring up the quicklook panel, I can see the number of items, it displays a generic icon of the first file, and I can cycle through to other files, and it displays the name of each file correctly. BUT, the preview panel will not show me a real icon or preview of any file, only the generic blank white page icon. If I override the panel methods: - (id <QLPreviewItem>)previewPanel:(QLPreviewPanel *)panel previewItemAtIndex:(NSInteger)index and - (NSURL *)previewItemURL to return an NSURL to a file on my hard drive, then the quicklook preview works properly and I see the actual image of the PDF. If I override those methods to use a hard coded NSURL to the same file on a network volume, the generic blank white-document icon shows up. So, what am I missing? I don't understand why this works locally but not on a network volume. The Finder shows the network item's quicklook preview properly. Here's my methods: - (NSURL *)previewItemURL { //return [NSURL URLWithString:@"file://localhost/Users/chris.paveglio/Desktop/Using%20Native%20Ai%20Files.pdf"]; return[NSURLURLWithString:@"file://Volumes/Clippers2011/DTDWriteup/Team%203/%20%20Prep/Using%20Native%20Ai%20Files.pdf"]; } - (id <QLPreviewItem>)previewPanel:(QLPreviewPanel *)panel previewItemAtIndex:(NSInteger)index { //actual methods to use //NSInteger selectedRow = [myTableView selectedRow]; //PrepworkItem*p = [[pwArrayControllerarrangedObjects] objectAtIndex:selectedRow]; //return [[p urlToCurrentItems] objectAtIndex:index]; //testing return values //return [NSURL URLWithString:@"file://localhost/Users/chris.paveglio/Desktop/Using%20Native%20Ai%20Files.pdf"]; return[NSURLURLWithString:@"file://Volumes/Clippers2011/DTDWriteup/Team%203/%20%20Prep/Using%20Native%20Ai%20Files.pdf"]; } Thanks, Chris _______________________________________________ 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