Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 24, 2013, 12:52 PM   #1
silvercircle
macrumors member
 
Join Date: Nov 2010
.ini file will not display my ico

My application supports various files types and all of them use my custom icons assigned to them.
Only the files with extension .ini show the icon for a second when I save them and then they return to another icon.
The icon used by the system has on the left of the icon text and at the bottom in bigger font it says .ini. The text reflect the content of the file.

I have set with file-info to use my application as the default to open the files with this extension,does not help to use the icon. Double click on the file does open it with my application.
Is there an application standard to MacOs assigned to those files?
I simply can not figure out why only these files will not use my icons.
Any ideas?
silvercircle is offline   0 Reply With Quote
Old Jan 24, 2013, 07:33 PM   #2
Red Menace
macrumors regular
 
Join Date: May 2011
Location: Littleton, Colorado, USA
If your application has been set to be the one to open a particular file type, the system will get the icon from the application bundle. How have you set up your application's Info.plist for the various file types?
__________________
MacBook Pro / OS X Mavericks (10.9.2) / Xcode 5.1 / [and various (much) older stuff keeping dust off the shelves]
Red Menace is offline   0 Reply With Quote
Old Jan 25, 2013, 05:36 AM   #3
silvercircle
Thread Starter
macrumors member
 
Join Date: Nov 2010
Quote:
Originally Posted by Red Menace View Post
If your application has been set to be the one to open a particular file type, the system will get the icon from the application bundle. How have you set up your application's Info.plist for the various file types?
Yes, the Info.plist file is ok. My 3 other file types show the right icon.
If i change the extension from ini to pni in the plist file, this icon is also fine.
There must be an application or default setting in OSX overriding my setting.
Only if I set the size of icons to very small my icon is used, if it is a bit larger the 'other' icon is used.
silvercircle is offline   0 Reply With Quote
Old Jan 27, 2013, 03:19 PM   #4
Madd the Sane
macrumors 6502
 
Join Date: Nov 2010
Location: Utah
If you want a file to display a custom icon, different from one provided by the info.plist, look into making a QuickLook plug-in. I think they can change a file's icon, not just when doing a QuickLook.
Madd the Sane is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:36 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC