On 23 May '08, at 4:43 AM, John Love wrote:
Changing the spin method to look like:
- (void) spinIt:(BOOL)begin {
if (begin) [spinner startAnimation:nil];
else[spinner stopAnimation:nil];
}
Looks good.
@interface MyDocument:NSDocument
{
IBOutlet Controller *theControl;
}
@
On a further check of the docs this is probably not it, because init
is the designated initializer.
But in any case, you ought to start logging and/or asserting your
expectations, so that any invalid pointers and so on stand out like a
sore thumb in the log - you'll get to the bottom of thi
Why are you autoreleasing the NSProgressIndicator? That means that
when the pool is released, your "spinner" pointer will go stale. Odds
are it will crash - not sure why it isn't doing so in the first case.
Also, if it's an IBOutlet why are you assigning to it? This isn't
actually harmful,