• 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
shouldSelectTabViewItem called twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shouldSelectTabViewItem called twice


  • Subject: shouldSelectTabViewItem called twice
  • From: Frode <email@hidden>
  • Date: Tue, 27 Jun 2006 11:10:01 +0200

Part 1 of 2

Hello!

I have a NSTableView inside a window. Two NSButtons have actions selectNextTabViewItem and selectPreviousTabViewItem to the NSTableView.

When I call selectXXXTabViewItem, or if it's called as a result of user interaction, the shouldSelectTabViewItem
delegate is called twice, the other delegates (didSelectTabViewItem, willSelectTabViewItem) only once.


A similar strange behaviour appears if shouldSelectTabViewItem returns NO. Then selectXXXTabViewItem seems to send shouldSelectTabViewItem to all tabs before (or after) the selected tab. And the last tab receives two messages, again.

Does this behaviour fill any particular purpose? And what is the purpose?

Thanks for any hints

Regards
Roger

PS. A similar issue was posted about a year ago:

http://www.cocoabuilder.com/archive/message/cocoa/2005/11/27/151180

_______________________________________________
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: shouldSelectTabViewItem called twice
      • From: Corbin Dunn <email@hidden>
    • Re: shouldSelectTabViewItem called twice
      • From: Frode <email@hidden>
    • Re: shouldSelectTabViewItem called twice
      • From: Frode <email@hidden>
  • Prev by Date: undo without dirty document
  • Next by Date: Re: shouldSelectTabViewItem called twice
  • Previous by thread: Re: undo without dirty document
  • Next by thread: Re: shouldSelectTabViewItem called twice
  • Index(es):
    • Date
    • Thread