Re: Set Icon For Document-Based Files

2010-11-04 Thread PJBorges
[SOLVED] I finally got it to work. Sherm gave me a last hint that the extension should be changed. A standard document-based application enables you to save in 3 formats: binary, SQLite, XML. E.g., if you save in binary format the extension is automatically set to .binary. This gives a plain white

RE: Set Icon For Document-Based Files

2010-11-04 Thread Lee Ann Rucker
r 04, 2010 1:13 AM To: Lee Ann Rucker Subject: Re: Set Icon For Document-Based Files Never heard of Launch Services, how do I reset it? Den Nov 3, 2010 kl. 8:51 PM skrev Lee Ann Rucker: Have you reset Launch Services? Sometimes it doesn't pick up changes until you do. On Nov 3, 2010, at 7:17

Re: Set Icon For Document-Based Files

2010-11-04 Thread Sherm Pendley
On Thu, Nov 4, 2010 at 2:32 PM, Sherm Pendley wrote: > On Thu, Nov 4, 2010 at 1:39 PM, PJBorges wrote: >> >> Does it matter where you put the key CFBundleTypeIconFile in the >> info.plist file? > > To some extent, yes - the overall structure of the .plist must be > right. That is, the CFBundleDoc

Re: Set Icon For Document-Based Files

2010-11-04 Thread Sherm Pendley
On Thu, Nov 4, 2010 at 1:39 PM, PJBorges wrote: > > Does it matter where you put the key CFBundleTypeIconFile in the > info.plist file? To some extent, yes - the overall structure of the .plist must be right. That is, the CFBundleDocumentTypes key must have an array of dictionaries, and the CFBun

Re: Set Icon For Document-Based Files

2010-11-04 Thread PJBorges
Thanks for your help, Markus and Sherm. I had a few builds, debug/release, so I've deleted the build directory and build anew - no change Copied it to /Applications - no change I tried cleaning the targets, no change. And the icon is in the Resources folder, it is copied there. Does it matter wh

Re: Set Icon For Document-Based Files

2010-11-04 Thread Sherm Pendley
On Thu, Nov 4, 2010 at 4:59 AM, Markus Spoettl wrote: > On Nov 4, 2010, at 9:21 AM, PJBorges wrote: >> I have done that, and yet my application registers no changes. It >> still saves the data with the plain white icon. > > Is it possible that you have multiple copies of the app lying around > (d

Re: Set Icon For Document-Based Files

2010-11-04 Thread Markus Spoettl
On Nov 4, 2010, at 9:21 AM, PJBorges wrote: > I have done that, and yet my application registers no changes. It > still saves the data with the plain white icon. Is it possible that you have multiple copies of the app lying around (different build types, copies for testing, etc) and Finder uses

Re: Set Icon For Document-Based Files

2010-11-04 Thread PJBorges
I have done that, and yet my application registers no changes. It still saves the data with the plain white icon. I nocticed that the UTI table is empty. My data can be saved either in binary, SQL, or XML format. Does it matter if this field is empty? I noticed that in TextEdit source code that th

Re: Set Icon For Document-Based Files

2010-11-04 Thread PJBorges
Thanks for the reference. I does include it. However, this reference says that if you omit the extensions it will look for the icon file name with the extension. Like when you want to assign the logo for your app, it is enough to write 'Logo' in the Info.plist file, because Cocoa knows that it shou

Re: Set Icon For Document-Based Files

2010-11-03 Thread Sherm Pendley
On Wed, Nov 3, 2010 at 11:50 AM, PJBorges wrote: > Some things to check: >> >> Second, did you forget to include the extension, or was that >> just a typo in your email? >         I haven't included the extentions, icns, since the > documentation says that it is not necessary. I double-checked th

Re: Set Icon For Document-Based Files

2010-11-03 Thread Reinhard Segeler
You have to register it by adding the document (type and icon name) for the document in the target's "Properties" pane and it must be part of your project, as well. -- Reinhard Am 03.11.2010 um 15:17 schrieb PJBorges: Hi, I've made a core data document-based application that works fi

Re: Set Icon For Document-Based Files

2010-11-03 Thread PJBorges
Some things to check: > > First, make sure that your icon is in .icns format - you should use > /Developer/Applications/Utilities/Icon Composer.app to convert it if > it isn't. I've done that and copied it to all sizes. Second, did you forget to include the extension, or was that > just a t

Re: Set Icon For Document-Based Files

2010-11-03 Thread Sherm Pendley
On Wed, Nov 3, 2010 at 10:17 AM, PJBorges wrote: > > How do I change that standard icon into a custom one? > > I've tried to add this to the Info.plist file, according to apple's > documentation: > > CFBundleTypeIconFile > myCustomIcon Some things to check: First, make sure that your icon is in