• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
openUntitledDocumentOfType:(Error)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: openUntitledDocumentOfType:(Error)
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: Re: NSGLImage doesnt open large images
  • Next by Date: Fwd: Modal sheet
  • Previous by thread: Fwd: Modal sheet
  • Next by thread: Re: openUntitledDocumentOfType:(Error)
  • Index(es):
    • Date
    • Thread