openUntitledDocumentOfType:(Error)
openUntitledDocumentOfType:(Error)
- Subject: openUntitledDocumentOfType:(Error)
- From: Chris Outwin <email@hidden>
- Date: Thu, 10 Mar 2005 22:03:54 -0600
I've made a basic mistake with openUntitledDocumentOfType, but don't understand what it is.
>From my AppDelegate, I call the following code attempting to create a custom document type (myDocRef):
myDocRef =[[ [NSDocumentController sharedDocumentController]
openUntitledDocumentOfType:@"myDocSubClass" display:YES]retain];
Among the attributes for myDocRef, the debugger indicates:
fileName invalid
fileType invalid
savePanelSaveType invalid
After stepping over this code the triangle adjacent to myDocRef in the debugger closes and displays nothing when subsequently opened.
I've completed the keys for myDocRef in the main Info.Plist including:
CFBundleTypeExtensions
CFBundleTypeName
CFBundleTypeRole
NSDocumentClass
I've only been able to find two paragraphs for creating a custom document type. They just suggest using openUntitledDocumentOfType. Does a custom document require its own Info.Plist? What am I doing wrong?
Thank you very much. _______________________________________________
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