Cannot display an alert while selection is changing in a NSOutlineView
Cannot display an alert while selection is changing in a NSOutlineView
- Subject: Cannot display an alert while selection is changing in a NSOutlineView
- From: Jean Bovet <email@hidden>
- Date: Mon, 25 Mar 2002 21:11:57 +0100
Hi,
Can anyone help me with the following problem: I want to display an alert if
the current selection of a NSOutlineView is not correct (in order for the
user to correct it). I've written the following lines of code:
- (BOOL)selectionShouldChangeInOutlineView:(NSOutlineView *)outlineView
{
NSRunAlertPanel(
)
return NO;
}
The problem is that despite I return NO, the
selectionShouldChangeInOutlineView method is still called again and again (I
cannot stop it). Why ? Because NSRunAlertPanel() is running an modal event
loop ? How can I display an alert when the selection is changing ?
Thank you in advance for your help!
Jean Bovet
email@hidden
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.