• 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: performance of adding subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performance of adding subviews


  • Subject: Re: performance of adding subviews
  • From: Steven Kramer <email@hidden>
  • Date: Sat, 23 Oct 2004 15:31:06 +0200


Op 21-okt-04 om 23:59 heeft Bertrand Landry-Hétu het volgende geschreven:

So I used Shark to find out why it is so slow and was surprised by the results. Well most of the time is spent in addSubView which is not a big surprise but where it spent the time in addSubView was surprising. There is a call to _verifyDefaultButtonCell that is recursive and that takes most of the time. So I was wondering if anybody new the nature of that call (other that it verifies the default button cell) and I could avoid addSubView calling it or if it only a matter of having a default button low enough in the responder chain.


You could try subclassing and overriding _verifyDefaultButtonCell to basically do nothing. It doesn't seem too important in your case. But do mind the usual warnings about undocumented features...

Steven

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >performance of adding subviews (From: Bertrand Landry-Hétu <email@hidden>)

  • Prev by Date: Re: [NEWBIE] Need some help getting started with a local dev environment
  • Next by Date: Re: KVO and accessors - are they needed
  • Previous by thread: performance of adding subviews
  • Next by thread: simple bash script
  • Index(es):
    • Date
    • Thread