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

Re: awakeFromNib and sheets


  • Subject: Re: awakeFromNib and sheets
  • From: Kurt Revis <email@hidden>
  • Date: Sat, 25 Aug 2001 06:03:20 -0700

Markus Hitter wrote:

My solution in this case was to "inject" a method into the run loop:

[[NSRunLoop currentRunLoop] performSelector:@selector(openMySheet)
target:self argument:nil order:0
modes:[NSArray arrayWithObject:NSDefaultRunLoopMode]];

It's worth noting that an easier way to do this is:

[self performSelector:@selector(openMySheet) withObject:nil afterDelay:0.0];

(This method is declared in NSRunLoop.h.) I'm pretty sure it has the same effect as what you wrote above, but is a whole lot easier to remember. The delay of 0.0 seconds doesn't mean that the selector will be performed immediately--instead it happens the next time through the run loop.

--
Kurt Revis
email@hidden


  • Prev by Date: Re: awakeFromNib and sheets
  • Next by Date: Re: awakeFromNib and sheets
  • Previous by thread: Re: awakeFromNib and sheets
  • Next by thread: Re: awakeFromNib and sheets
  • Index(es):
    • Date
    • Thread