• 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
Re: prob a silly question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prob a silly question


  • Subject: Re: prob a silly question
  • From: "Axel 'Mikesch' Katerbau" <email@hidden>
  • Date: Thu, 06 Sep 2001 10:45:51 +0200 (Europe/Berlin)

Hi Robert,

[NSOpenPanel beginSheetForDirectory: file: types: modalForWindow:
modalDelegate: didEndSelector: contextInfo:]

call, I figure didEndSelector is the method to handle the users
selection when they click ok or cancel. But what does the
modalDelegate do?

I'm still getting the hang of delegates as it is. This one does not
seem to have any use. Is not the window just locked, the modal panel
displayed and the result passed to the didEndSelector method?

modalDelegate is the receiver of the message specified with
didEndSelector. To illustrate it a bit more (although not correct -
just to get the idea)...something roughly like:

[<modalDelegate> <didEndSelector>];

Greetings,
Axe


  • Follow-Ups:
    • NSOpen/SavePanel tip (was Re: prob a silly question)
      • From: Mike Shields <email@hidden>
References: 
 >prob a silly question (From: Robert S Goldsmith <email@hidden>)

  • Prev by Date: rotating windows 90 degreesin interface builder
  • Next by Date: NSOpen/SavePanel tip (was Re: prob a silly question)
  • Previous by thread: Re: prob a silly question
  • Next by thread: NSOpen/SavePanel tip (was Re: prob a silly question)
  • Index(es):
    • Date
    • Thread