Re: NSDocument Problems
Re: NSDocument Problems
- Subject: Re: NSDocument Problems
- From: Bruce Cresanta <email@hidden>
- Date: Mon, 21 Feb 2011 15:14:27 -0700
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 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??
>
>
> Pedant's corner: it's not the document that is ordered front, but one of its windows.
>
> Therefore the window and document must be able to talk to one another to manage the menu items. This means you need to connect the document's 'window' outlet in IB to the window instance. It's a common thing to forget this, and will create the symptoms you're seeing. So check that.
>
> --GRaham
>
>
_______________________________________________
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