Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I get my Plugin Bundle



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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quicklook-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicklook-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.