Re: Menu items that reflect the document status
Re: Menu items that reflect the document status
- Subject: Re: Menu items that reflect the document status
- From: Eric Wang <email@hidden>
- Date: Thu, 03 Oct 2002 13:15:56 -0400
on 10/3/02 8:42 AM, David at email@hidden wrote:
>
Hi all,
>
>
How do you get the behavior where in TextEdit, if you have a plain text
>
and a rich text file open, when you switch between the two files, the
>
Format > Make Plain Text and Format > Make Rich Text menu items will
>
change according to the type of document currently in focus?
>
>
So in my situation, I have a document-based application, with a menu
>
item that allows the user to toggle the grid background on and off.
>
Currently I have two docs that have blank backgrounds, if I toggle one
>
of them to show the grid, and then switch to the other blank doc, the
>
Show Grid menu item will have a tick next to it, obviously incorrect
>
user feedback for that doc. How would I correct this?
>
>
Thanks,
>
>
David
Hi David,
Take a look at the Sketch example in /Developer/Examples/AppKit/Sketch/. It
does almost exactly what you are asking for.
Eric Wang
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.