Re: NSDocument Problems
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