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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
