On 16 févr. 08, at 20:07, Tim Gleason wrote:
> Sorry, I am new to Objective C and programming on the Mac, so this
> may be a dumb question, but:
>
> I've created my first QL plugin and it works great. What I would
> like to do is have some configuration in my info.plist that I can
> use at runtime. What I can't figure out how to do is get the bundle
> for my plugin. (Is there another way to get the info from
> info.plist other than from a bundle?)
>
> I know that you can get the bundle from the bundle id. But I want
> to avoid hard-coding the bundle id into my C code. (Imagine writing
> a C plugin that simply invoked a given script to generate the plugin
> text. In that case I might want to create 20 different plugins
> using the same compiled plugin library, but just change the script
> file name, supported file types and bundle id in the info.plist).
>
> Is there a way to either "get my plugin bundle" when you are called
> to generate the QLPreview (or even earlier when your plugin is
> generated). Or, somehow get my plugin id (maybe by using the file
> type to look it up in a registry)?
>
> Thanks for your help!
> tim
>
>
> _______________________________________________