• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: menuNeedsUpdate delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: menuNeedsUpdate delegate


  • Subject: Re: menuNeedsUpdate delegate
  • From: Boyd Collier <email@hidden>
  • Date: Fri, 17 Mar 2006 20:28:35 -0800

Matt,

Thanks for seeing if you could reproduce this. Yes, I meant every time
I type a character. I'm going to make a copy of my app and strip out
all the irrelevant code to see if I can get a better idea about what's
going on.

Boyd


On Mar 17, 2006, at 10:24 AM, Matt Neuburg wrote:

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
  • Follow-Ups:
    • Re: menuNeedsUpdate delegate
      • From: Boyd Collier <email@hidden>
References: 
 >Re: menuNeedsUpdate delegate (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Interapp communication
  • Next by Date: Re: One NSOutlineView, more than one identical items
  • Previous by thread: Re: menuNeedsUpdate delegate
  • Next by thread: Re: menuNeedsUpdate delegate
  • Index(es):
    • Date
    • Thread