Displaying an alert while selection is changing in a NSOutlineView
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.