• 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: Getting system bundle icon on custom plugin type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting system bundle icon on custom plugin type?


  • Subject: Re: Getting system bundle icon on custom plugin type?
  • From: Steve Christensen <email@hidden>
  • Date: Sun, 27 Sep 2009 15:18:40 -0700

If your application supports custom file types (documents, plugins, etc.), their icons are typically defined by the application and then the Finder uses that icon when it sees one of those files. That's been the behavior since 1984, although now the icon info is stored in your app bundle's Info.plist instead of in its resource fork.

If you're not seeing your custom icon then either you don't have the mapping set up correctly or the Launch Services database hasn't noticed that the icons are available, for example, if you just built your app.

If you want the custom icon to show up even when your app is not installed, you'll have to assign a custom icon to the plugin. The downside to that is that if you later decide to change the icon, existing plugins will have the legacy look.

steve


On Sep 25, 2009, at 4:10 PM, Rick Mann wrote:

I'm trying to set up a UIT for my app's plugins, and for now I just want to use the standard Apple bundle icon (looks like a 2x2 Lego brick). The Finder just gives me a generic folder (or document, when I set the bundle bit), when the extension is .myplugin. But when I made the extension .bundle, it did the right thing.

So I tried using "com.apple.bundle.icns" for the UTTypeIconFile (following the example in the UTI doc for "public.jpeg.icns", but it doesn't work.

I'm putting this in the Info.plist for the plugin itself. I tried also putting it in the app (first thing I tried), but I want it to work when there's no app installed, just the plugin (that is, I want it to show up properly in the Finder).

Attachment: PGP.sig
Description: PGP signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Getting system bundle icon on custom plugin type? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: warning at nslog
  • Next by Date: C++: std::ostringstream default ctor problems
  • Previous by thread: Getting system bundle icon on custom plugin type?
  • Next by thread: Grouped/ungrouped bug
  • Index(es):
    • Date
    • Thread