Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time limit on "selection change" handlers, refresh problems, menus



On Sat, 02 Jul 2005 16:55:16 -0400, Graham Jones <email@hidden> said:
>Hi all,
>
>I'm having some confusing interface issues.  I have a nib with four tables,
>in two sets of split views.  In the two right tables, I get the proper order
>of the following handlers:
>
>- should selection change
>- should select row
>- selection changed
>- clicked
>
>However, in the left two tables, the first two of the four get called, and
>then you have to click a second time to get the last two to call.  There
>seems to be some kind of interruption in the responder, because if between
>these two clicks you try to do anything else, you also have to do it twice.
>In other words, if I click once in one of the left tables, and then select
>"Quit" from the menu, it won't respond until I select "Quit" again.
>
>I have narrowed it down to simple timing...  In my "should selection change"
>I examine for any changes to the record and register the changes.  When I
>cleaned up the code a little, the first five records would respond properly.
>I tightened up as much as I could, and now the first eight respond properly.
>
>Has anyone seen this kind of thing before?  Is there anything I can do about
>it?

It sounds to me like it might have something to do with Cocoa's looking to
see if the click is a doubleclick. Can you boil it down to an easily
reproducible case in a very simple project? If so, submit a bug report.

>I don't know if it's related, but it seems since updating to Xcode 2.1 I
>can't change menu item titles or menu item state I my app any more, at least
>in one menu that also has an "update menu item" handler.

Can you describe steps for reproducing this? Again, if so, a bug report
might be in order. m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.