Non-Document based apps and documents
Non-Document based apps and documents
- Subject: Non-Document based apps and documents
- From: Thomas Davie <email@hidden>
- Date: Thu, 6 Jan 2005 10:12:47 +0000
Hi,
I have a non-document based cocoa app that I would like to be able to
read and write some documents (as an import/export feature rather than
a save feature). I have two problems with this:
First, when I go to export I bring up a save panel, and tell it that
the user is allowed to set whether the extension is hidden... I then
save the file with [NSArchiver archiveRootObject:ToFile:], but how to I
make the file extension hidden?
Secondly, the files that I save don't pick up their correct owner
properly... I have set that my app edits files in the target settings
with the following properties:
Name: MyFileTypeName
UTI: com.myCompany.myApp.myFileType
Extension: myExtension
MIME Types:
OS Types: MyFourLetterOSFileType
Class: This may be where I'm going wrong – I have no class to represent
these files, as they store arrays of classes, that are copied into
various places when the file is loaded.
Icon File: myIconFile (although the icon doesn't get associated with
the files)
Store Type: Binary
Role: Editor
Package: NO
Have I missed some crucial step to make the OS recognise these as my
app's files?
Bob
--
God is real... Unless you define it as an integer.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden