Re: NSDocument Problems

2011-02-21 Thread Bruce Cresanta
Thank you Graham, it worked! I now have all the main menu items working. Thank you, Bruce On Feb 21, 2011, at 3:05 PM, Graham Cox wrote: > > On 22/02/2011, at 1:28 AM, Bruce Cresanta wrote: > >> I have two NSDocuments in my project: MyDocument patterned after the >> template, and An

Re: NSDocument Problems

2011-02-21 Thread Graham Cox
On 22/02/2011, at 1:28 AM, Bruce Cresanta wrote: > 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 fo

Re: NSDocument Problems

2011-02-21 Thread Bruce Cresanta
Sherm, I checked this and the class is AnalyzerDocument, just the way it should be. Bruce On Feb 21, 2011, at 12:35 PM, Sherm Pendley wrote: > On Mon, Feb 21, 2011 at 2:12 PM, Bruce Cresanta wrote: >> Hello Volker, >> >> I have the following two methods implemented in AnalyzerDocumen

Re: NSDocument Problems

2011-02-21 Thread Sherm Pendley
On Mon, Feb 21, 2011 at 2:12 PM, Bruce Cresanta 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 ofTy

Re: NSDocument Problems

2011-02-21 Thread Bruce Cresanta
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 imp

Re: NSDocument Problems

2011-02-21 Thread Volker in Lists
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 schr

NSDocument Problems

2011-02-21 Thread 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