• 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
sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sheets


  • Subject: sheets
  • From: Robert Goldsmith <email@hidden>
  • Date: Sat, 10 Nov 2001 12:53:17 +0000

Hi all :)

Thanks for the help :)

One thing that confused me was that, when I tried [NSApp endSheet:mySheet] it worked fine but quit the application. As I have had a couple of replies saying this is the corect way of doing things, i now realise that what was happening is:

The sheet and the main window both have the same delegate class instance (it's a very small app I'm simply playing around with). For the main window, when it closes, the application should quit so that's what I do. But when the sheet closes, because it had the same delegate, it also quit the application when it closed ...

Thanks for clearing this up for me :)

Robert
--


  • Prev by Date: Re: cocoa sheets
  • Next by Date: Re: All these newbie questions that are answered by documentation
  • Previous by thread: Re: Nibtool for translation
  • Next by thread: New Cocoa Programmer
  • Index(es):
    • Date
    • Thread