Re: Document-based application issue

2009-12-30 Thread Patrick Mau
Hallo Mac Lancer

I have recently developed my first Cocoa Aplication creating custom
ducumen bundles. What I did was to not only registering the document types
but also export the file types in case they are not yet registered.

This was my first app that supports a quicklook plugin for
previes and thumbnails in Finder. This is why I exported the UTT's.

In my QL plugin I added the type to the supported documents info.

To accomplish this I have added the following to my applications Info.plist 
file:

keyUTExportedTypeDeclarations/key
array
dict
keyUTTypeConformsTo/key
array
!-- CHANGE: My files are bundles, yours are 
plain files --
stringcom.apple.package/string
/array
keyUTTypeDescription/key
!-- CHANGE: You description of the type --
stringPortfolio/string
keyUTTypeIconFile/key
stringIcon.icns/string
keyUTTypeIdentifier/key
!-- CHANGE: This was my real reverse DNS identifier 
for the filetype --
stringcom.yourcompany.filetype/string
keyUTTypeTagSpecification/key
dict
keypublic.filename-extension/key
array
stringportfolio/string
/array
/dict
/dict
/array

Th
On 29.12.2009, at 19:53, Mac Lancer wrote:

 Hello, Gentlemen,
 
 I’m working on a Cocoa application that is intended to open documents in
 custom format. It is a document-based application and it should open files
 with aeep/aeew extensions. The problem is that on some Mac computers after
 installation aeep/aeew files do not open when the user double-clicks them.
 My thought was that the aeep/aeew file extensions are not registered for
 some reason during the installation. I even tried adding 'lsregister' call
 to the postflight script but with no luck – the files still do not open.
 Unfortunately, I do not have much information about configurations of these
 macs as this behavior is reported by end users. Does anyone know what can be
 the reason for such behavior? Am I missing something? Some additional
 information below:
 
 1. The application is installed to the folder /Library/Application
 Support/AnimalsandEarth/AE Photo.app
 2. Info.plist file contains the following dictionary:
 keyCFBundleDocumentTypes/key
array
dict
keyCFBundleTypeExtensions/key
array
stringaeep/string
stringaeew/string
stringjpg/string
stringjpeg/string
stringpng/string
stringgif/string
stringbmp/string
/array
keyCFBundleTypeIconFile/key
string/string
keyCFBundleTypeName/key
stringAnimalsAndEarthPhoto/string
keyCFBundleTypeOSTypes/key
array
string/string
/array
keyCFBundleTypeRole/key
stringViewer/string
keyNSDocumentClass/key
stringMyDocument/string
/dict
/array
 3. The URL to the installer:
 http://www.animalsandearth.com/macapp/animalsandearth.dmg
 4. Some aeep files can be found in the ~/Pictures/AnimalsandEarth Photos/
 folder
 
 Any help would be appreciated.
 
 Thanks,
 AE
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/pmau%40me.com
 
 This email sent to p...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Document-based application issue

2009-12-30 Thread Uli Kusterer
On 29.12.2009, at 19:53, Mac Lancer wrote:
keyCFBundleTypeExtensions/key
array
stringaeep/string
stringaeew/string
stringjpg/string
stringjpeg/string
stringpng/string
stringgif/string
stringbmp/string
/array

Don't really have any good ideas, but you're mixing different file extensions 
here and claiming them to be the same type. Maybe you should make separate 
entries for different types? If you're declaring UTIs for document types, 
declaring a different UTI than everyone else might be confusing Launch 
Services, or might cause LS to not consider your app to be able to open the UTI 
for that kind of file.

Just wildly guessing here, but if you find no other solution, it's an avenue to 
investigate.

-- Uli Kusterer
The Witnesses of TeachText are everywhere...
http://www.masters-of-the-void.com



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Document-based application issue

2009-12-29 Thread Mac Lancer
Hello, Gentlemen,

I’m working on a Cocoa application that is intended to open documents in
custom format. It is a document-based application and it should open files
with aeep/aeew extensions. The problem is that on some Mac computers after
installation aeep/aeew files do not open when the user double-clicks them.
My thought was that the aeep/aeew file extensions are not registered for
some reason during the installation. I even tried adding 'lsregister' call
to the postflight script but with no luck – the files still do not open.
Unfortunately, I do not have much information about configurations of these
macs as this behavior is reported by end users. Does anyone know what can be
the reason for such behavior? Am I missing something? Some additional
information below:

1. The application is installed to the folder /Library/Application
Support/AnimalsandEarth/AE Photo.app
2. Info.plist file contains the following dictionary:
keyCFBundleDocumentTypes/key
array
dict
keyCFBundleTypeExtensions/key
array
stringaeep/string
stringaeew/string
stringjpg/string
stringjpeg/string
stringpng/string
stringgif/string
stringbmp/string
/array
keyCFBundleTypeIconFile/key
string/string
keyCFBundleTypeName/key
stringAnimalsAndEarthPhoto/string
keyCFBundleTypeOSTypes/key
array
string/string
/array
keyCFBundleTypeRole/key
stringViewer/string
keyNSDocumentClass/key
stringMyDocument/string
/dict
/array
3. The URL to the installer:
http://www.animalsandearth.com/macapp/animalsandearth.dmg
4. Some aeep files can be found in the ~/Pictures/AnimalsandEarth Photos/
folder

Any help would be appreciated.

Thanks,
AE
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com