• 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: Strange NSMatrix thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange NSMatrix thread


  • Subject: Re: Strange NSMatrix thread
  • From: Troy Stephens <email@hidden>
  • Date: Thu, 23 Oct 2003 10:04:45 -0700

This is the thread the drives updates to the pulsing default button.

If eliminating the associated overhead is important to you, you can change your UI to not have a default button (one that has [Return] assigned as its Key Equivalent).

Troy Stephens
Cocoa frameworks, Apple

On Oct 23, 2003, at 9:07 AM, Jean Bovet wrote:
Hi,

After displaying cells inside a NSMatrix subclass, my application is taking around 10% CPU (while it is doing absolutely nothing). When looking a the thread running, I have found the following thread:

BlendedHeartBeatButtonImage
0x5
DrawMacintoshPushButtonBezel
_NSDrawMacintoshStyleBezel
-[NSButtonCell drawWithFrame:inView:]
-[NSControl drawRect:]
-[NSView _drawRect:clip:]
-[NSView _lightWeightRecursiveDisplayInRect:]
-[NSView _lightWeightRecursiveDisplayInRect:]
-[NSView _lightWeightRecursiveDisplayInRect:]
-[NSButtonCell(NSDefaultButtonIndicatorPrivate) heartBeat:]
-[NSWindow(NSWindow_Theme) heartBeat:]
-[NSUIHeartBeat _heartBeatThread:]
forkThreadForFunction
_pthread_body

This thread is running only when the NSMatrix has cell to display and only when my application is the front application.

Does anyone know why is this thread running and how can I stop this thread (or make it not running) ?

Thanks in advance.

Jean Bovet
_______________________________________________
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.

References: 
 >Strange NSMatrix thread (From: Jean Bovet <email@hidden>)

  • Prev by Date: Re: Cocoa Application without any NIB
  • Next by Date: Newbish problem with adding NSView to NSWindow
  • Previous by thread: Re: Strange NSMatrix thread
  • Next by thread: Apply infoDictionnary modifications to disk
  • Index(es):
    • Date
    • Thread