Checking/unchecking a menu item based on responder chain
Checking/unchecking a menu item based on responder chain
- Subject: Checking/unchecking a menu item based on responder chain
- From: Glen Low <email@hidden>
- Date: Sat, 8 May 2004 17:00:47 +0800
Hi all,
Suppose I have an object in the responder chain e.g. NSDocument
subclass, NSTextView whatever. There's a menu command that affects this
object state -- and which is checked or unchecked depending on the
object's state.
Assuming that according to good MVC/GUI/ [insert alphabet soup]
practice, I don't want the object to "know" about the menu item, is
there a neat way of getting the menu command to check or uncheck when
the object gets to be in the responder chain? Presumably, this works
for enabling or disabling, I just can't figure it out for checking and
unchecking...
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
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.