Re: Faking out modality with validateMenuItem:
Re: Faking out modality with validateMenuItem:
- Subject: Re: Faking out modality with validateMenuItem:
- From: Matt Neuburg <email@hidden>
- Date: Tue, 05 Dec 2006 07:46:59 -0800
- Thread-topic: Faking out modality with validateMenuItem:
On Tue, 5 Dec 2006 10:24:12 -0500, Jeffrey Johnson <email@hidden> said:
> So I abandoned the runModalForWindow: approach entirely and decided I'd put up
> a view with the registration controls covering the content in the initial
> window, and try to fake modality by disabling the menu items myself. That
> solved the modality problem with NSURLConnection, but by adding a
> validateMenuItem: to my AppController to disable menu choices during
> registration, it interferes with the normal way menus are handled after
> registration.
Then your validateMenuItem: is in the wrong place. Don't fight the responder
chain; use it. The responder chain is a beautiful thing and is here to make
your life easier. For example, put validateMenuItem: in some spot in the
responder chain that is present only when you have your fake view up, and
before your AppController in the chain. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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