• 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: Hanging heartbeat thread on launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Hanging heartbeat thread on launch
      • From: Will Cosgrove <email@hidden>
References: 
 >Hanging heartbeat thread on launch (From: Will Cosgrove <email@hidden>)

  • Prev by Date: Re: creating 'omni like' disk images
  • Next by Date: Re: creating 'omni like' disk images
  • Previous by thread: Hanging heartbeat thread on launch
  • Next by thread: Re: Hanging heartbeat thread on launch
  • Index(es):
    • Date
    • Thread