Re: menuNeedsUpdate delegate
Re: menuNeedsUpdate delegate
- Subject: Re: menuNeedsUpdate delegate
- From: Matt Neuburg <email@hidden>
- Date: Fri, 17 Mar 2006 10:24:11 -0800
- Thread-topic: menuNeedsUpdate delegate
On Thu, 16 Mar 2006 16:45:12 -0800, Boyd Collier
<email@hidden> said:
>In response to the question posted by Rudi Sherry earlier today, I
>looked at a document-based program I've been working on to remind
>myself of what I did regarding keeping the text current. Separately,
>in the same program, I update a hierarchical menu so that it shows
>the names of all the open document windows. I do this by using a
>menuNeedsUpdate delegate. In my code for this method, I put a brief
>message in the run log (for debugging purposes). Much to my
>surprise, this shows that menuNeedsUpdate gets called every time I
>type into a document window, even though in Interface Builder, the
>delegate is connected between the menu that I want to update and my
>AppController, and would seem to have nothing to do with typing in a
>document window. Obviously, I don't understand something (not
>unusual for me). I reread Anguish et al. on delegates and still
>don't understand why typing in a document window would cause
>menuNeedsUpdate to be called.
I can't reproduce this. When you say "every time I type", do you mean every
time you type a character, or every time you switch to a document window and
start typing in it? Also, what menu is it that you've set the delegate of?
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>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden