• 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
Re: NSDocument Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument Problems


  • Subject: Re: NSDocument Problems
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 21 Feb 2011 14:35:36 -0500

On Mon, Feb 21, 2011 at 2:12 PM, Bruce Cresanta <email@hidden> wrote:
> Hello Volker,
>
> I have the following two methods implemented in AnalyzerDocument, but I still get greyed menu items.
>
> - (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
>
> - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError
>
> Do I need to implement other methods to save/read a file?

You should check to make sure you've assigned the correct class for
the document type - double-click on the target, then look in the
"Document Types" section of the "Properties" pane. The sixth column
over is Class, which by default is MyDocument.

sherm--

--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSDocument Problems
      • From: Bruce Cresanta <email@hidden>
References: 
 >NSDocument Problems (From: Bruce Cresanta <email@hidden>)
 >Re: NSDocument Problems (From: Volker in Lists <email@hidden>)
 >Re: NSDocument Problems (From: Bruce Cresanta <email@hidden>)

  • Prev by Date: Re: NSDocument Problems
  • Next by Date: Re: GCContext errors
  • Previous by thread: Re: NSDocument Problems
  • Next by thread: Re: NSDocument Problems
  • Index(es):
    • Date
    • Thread