Display dialog with icon...

Say I have a variable called filePath which is a POSIX path to an application. It’s icon is in filePath & “/Contents/Resources” but I don’t know what it’s called. How can I display it in a

display dialog with icon

without knowing it’s name?

Hi,

in every Cocoa application the name of the icon is stored in its Info.plist > key CFBundleIconFile

Thanks! I’m asking the user to pick a file or application and then I’m trying to display the icon for whatever they’ve picked. Any ideas?