Re: awakeFromNib and sheets
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