• 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
Displaying an alert while selection is changing in a NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying an alert while selection is changing in a NSOutlineView


  • Subject: Displaying an alert while selection is changing in a NSOutlineView
  • From: Jean Bovet <email@hidden>
  • Date: Fri, 15 Mar 2002 15:52:08 +0100

Hi,

I've a problem using NSOutlineView and I've found no answer to it yet.

When the user wants to change the current selection in an NSOutlineView, you
can tell the outlineview if you are accepting (or rejecting) the change by
implementing the "selectionShouldChangeInOutlineView" delegate.

The problem is when I display an alert within
"selectionShouldChangeInOutlineView", the NSOutlineView will continue to
call the "selectionShouldChangeInOutlineView", and I get an infinite loop
(the alert always dismiss and then redisplay). Does anyone has an idea how
to deal with this problem ?


Thank you in advance.

Jean Bovet
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: What may be wrong?
  • Next by Date: Re: Subclass NSCell
  • Previous by thread: What may be wrong?
  • Next by thread: Dragging to text fields
  • Index(es):
    • Date
    • Thread