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

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.

  • Prev by Date: Custom drawing in a cell in NSMatrix problem
  • Next by Date: Re: UNIX cli apps with Aqua GUI
  • Previous by thread: Custom drawing in a cell in NSMatrix problem
  • Next by thread: Re: UNIX cli apps with Aqua GUI
  • Index(es):
    • Date
    • Thread