• 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
Modal session when opening a sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modal session when opening a sheet


  • Subject: Modal session when opening a sheet
  • From: Andrea at Redmatica <email@hidden>
  • Date: Sat, 24 Sep 2005 11:15:42 +0200

My application has to do some background work while a sheet is open.
Using NSThreads in this case should be avoided for a number of reasons.

I would like to use a modal session, with my process loop calling periodically
[NSApp runModalSession:(NSModalSession)session]


The problem is how to get the NSModalSession value for the sheet session.
While the standard beginModalSessionForWindow: returns an NSModalSession value, the
beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: method i need to use returns void.
(suggestion: wouldn't it make sense if it returned the NSModalSession?)


Any idea on how to recover the NSModalSession value for the current sheet?
(Or maybe i simply overlooked something?)


Andrea

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Modal session when opening a sheet
      • From: "Marcus S. Zarra" <email@hidden>
  • Prev by Date: Re: Vertically centre text in Table Views
  • Next by Date: nextKeyView and return
  • Previous by thread: Indexing extensions/files
  • Next by thread: Re: Modal session when opening a sheet
  • Index(es):
    • Date
    • Thread