• 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: Bruce Cresanta <email@hidden>
  • Date: Mon, 21 Feb 2011 12:12:24 -0700

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?

Thanks,

Bruce




On Feb 21, 2011, at 9:23 AM, Volker in Lists wrote:

> Hi,
>
> these all rely on the ResponderChain - so, if one of your ANalyzerDocuments is front-most, it must implement these methods to enable the menu commands. If your analyzer document is always coupled with a "normal" document, you may relay the calls to that.
>
> volker
>
> Am 21.02.2011 um 15:28 schrieb Bruce Cresanta:
>
>> Hello,
>>
>> 	I have two NSDocuments in my project:  MyDocument patterned after the template, and AnalyzerDocument.  Analyzer document is ordered second in the target list of documents, so it is not the default document.    All the menu items for save, save as, print, and page setup are grayed when i have an AnalyzerDocument key and ordered front.    How do I ungray the items??
>

_______________________________________________

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: Sherm Pendley <email@hidden>
References: 
 >NSDocument Problems (From: Bruce Cresanta <email@hidden>)
 >Re: NSDocument Problems (From: Volker in Lists <email@hidden>)

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