Re: Hanging heartbeat thread on launch
Re: Hanging heartbeat thread on launch
- Subject: Re: Hanging heartbeat thread on launch
- From: Matt Covey <email@hidden>
- Date: Thu, 16 May 2002 20:34:08 -0700
Will,
I ran into the same bug. My approach was to leave the button as normal in IB and then change it to default when the window opened, using:
- (void) awakeFromNib
{
/* ... do stuff ... */
[self performSelector: @selector( updateToBeDefaultButtonOfWindow: )
withObject: [self window]
afterDelay: 0.0
];
}
(Note it seems to be something to do with events and/or a race condition (450 DP) involving the default button and a horizontal split view ('one above the other'), so you need to let the main run loop invoke the updateToBeDefaultButtonOfWindow: method.)
++matt
>
Hi All,
>
I'm having a continuing problem with my app hanging (spinning rainbow of
>
death) just after the main window appears. I believe it's the heartbeat
>
thread because all my "pulsating" buttons stop animating and then it hangs
>
and I don't have any threads of my own running.
>
>
What I'm doing is I read a file then insert a view into a super view which
>
is inside an NSSplitView. On this newly inserted view is a default button,
>
which seems to be causing the problem. When I turn the button from default
>
to normal in IB, my app won't hang. But as soon as I change to back to a
>
default button, it will start hanging again.
>
>
Does anyone have any suggestions how I can fix this problem?
>
>
Thanks in advance,
>
Will C.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.