Re: Best 'Cocoa' File Preview

2009-07-14 Thread Julien Jalon
Hi David, Glad you got it to work. On Tue, Jul 14, 2009 at 3:34 AM, David Blanton aired...@tularosa.netwrote: Furthermore why so convoluted and difficult? I should be able to say call me for files of type'.pes' and be done with it. That's what you need to do. Except file extensions is not

Best 'Cocoa' File Preview

2009-07-13 Thread Julien Jalon
On Monday, July 13, 2009, David Blanton aired...@tularosa.net wrote: Is it not the case that the UTI is defined in the info.plist CFBundleDocumentTypes?  (which I have done). Nope, CFBundleDocumentTypes associates your type to the plugin. You should use UTExportedTypes or UTImportedTypes

Re: Best 'Cocoa' File Preview

2009-07-13 Thread David Blanton
Thanks Julien, I knew there was something I was misinterpreting, always is! On Jul 13, 2009, at 7:38 AM, Julien Jalon wrote: On Monday, July 13, 2009, David Blanton aired...@tularosa.net wrote: Is it not the case that the UTI is defined in the info.plist CFBundleDocumentTypes? (which I

Re: Best 'Cocoa' File Preview

2009-07-13 Thread David Blanton
Here is my info.plist I am trying to get a callback for files ending in .pes My code still does not break. The breakpoint is orange outlined in blue (?) Please shed some light ... ?xml version=1.0 encoding=UTF-8? !DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN

Re: Best 'Cocoa' File Preview

2009-07-13 Thread Adam R. Maxwell
On Jul 13, 2009, at 1:02 PM, David Blanton wrote: Here is my info.plist I am trying to get a callback for files ending in .pes keyUTExportedTypeDeclarations/key array dict keyUTTypeIdentifier/key

Re: Best 'Cocoa' File Preview

2009-07-13 Thread David Blanton
Maybe I should reformulate my question. I want the Finder to call my QLGenerator whenever it sees a file of type '.pes'. Can someone show me the required info.plist entries? This does not get my generator called: keyUTExportedTypeDeclarations/key array dict

Re: Best 'Cocoa' File Preview

2009-07-13 Thread Graham Cox
On 14/07/2009, at 11:34 AM, David Blanton wrote: Furthermore why so convoluted and difficult? I should be able to say call me for files of type'.pes' and be done with it. Any help is appreciated. The system has to consider the more general situation - what if the type were '.txt'?

Re: Best 'Cocoa' File Preview

2009-07-13 Thread Adam R. Maxwell
On Jul 13, 2009, at 6:34 PM, David Blanton wrote: Maybe I should reformulate my question. I want the Finder to call my QLGenerator whenever it sees a file of type '.pes'. Can someone show me the required info.plist entries? You need to do two things: 1) declare your type to map .pes

Re: Best 'Cocoa' File Preview

2009-07-13 Thread David Blanton
These are not my files. just know (intellectual property) how to read and write them. There are approx 18 formats that will ultimately be supported by by generator. On Jul 13, 2009, at 7:48 PM, Graham Cox wrote: On 14/07/2009, at 11:34 AM, David Blanton wrote: Furthermore why so

Re: Best 'Cocoa' File Preview

2009-07-13 Thread David Blanton
Ok Adam. I took your example and got this: http://highrolls.net/Samples/Info.plist Please comment, as my qlgen is not called. And I did mdls and got this: http://highrolls.net/Samples/mdls.txt which shows a different kMDItemContentType. Am I even getting close? On Jul 13, 2009, at 7:50

Re: Best 'Cocoa' File Preview

2009-07-13 Thread David Blanton
Arrggg! Had a misspelling in my -t parameters - break point being hit! Now to add more than on file type. Thanks a bunch to all but I'll be back! db On Jul 13, 2009, at 7:50 PM, Adam R. Maxwell wrote: On Jul 13, 2009, at 6:34 PM, David Blanton wrote: Maybe I should

Re: Best 'Cocoa' File Preview

2009-07-12 Thread David Blanton
I am traveling down the QuickLook path ... I have followed all directions but my code is not being called by qlmange as evidenced here: 7/12/09 4:46:08 PM qlmanage[855] [QL] Thumbnailing /users/davidblanton/ Aibnb18.pes. Content type UTI: dyn.ah62d4rv4ge81a3px. Generator used: None

Re: Best 'Cocoa' File Preview

2009-07-12 Thread Julien Jalon
On Mon, Jul 13, 2009 at 12:58 AM, David Blanton aired...@tularosa.netwrote: I am traveling down the QuickLook path ... I have followed all directions but my code is not being called by qlmange as evidenced here: 7/12/09 4:46:08 PM qlmanage[855] [QL] Thumbnailing

Re: Best 'Cocoa' File Preview

2009-07-12 Thread David Blanton
Is it not the case that the UTI is defined in the info.plist CFBundleDocumentTypes? (which I have done). On Jul 12, 2009, at 6:01 PM, Julien Jalon wrote: On Mon, Jul 13, 2009 at 12:58 AM, David Blanton aired...@tularosa.net wrote: I am traveling down the QuickLook path ... I have

Re: Best 'Cocoa' File Preview

2009-07-12 Thread David Blanton
Still no work ... I go sleep now .. On Jul 12, 2009, at 7:18 PM, David Blanton wrote: Is it not the case that the UTI is defined in the info.plist CFBundleDocumentTypes? (which I have done). On Jul 12, 2009, at 6:01 PM, Julien Jalon wrote: On Mon, Jul 13, 2009 at 12:58 AM, David

Best 'Cocoa' File Preview

2009-07-11 Thread David Blanton
What is the preferred method of showing a file preview (my unique content) in an NSOpenPanel ? The Accessory View looks 'hooky' to use , I want the preview in the next browser column. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Best 'Cocoa' File Preview

2009-07-11 Thread Rob Keniger
On 12/07/2009, at 1:02 PM, David Blanton wrote: What is the preferred method of showing a file preview (my unique content) in an NSOpenPanel ? The Accessory View looks 'hooky' to use , I want the preview in the next browser column. Write a QuickLook plugin for your document type. That