Re: NSTextView HICocoaView performance
Re: NSTextView HICocoaView performance
- Subject: Re: NSTextView HICocoaView performance
- From: Ryan Joseph <email@hidden>
- Date: Thu, 9 Apr 2009 21:51:16 +0700
On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote:
On Apr 9, 2009, at 1:06 , Ryan Joseph wrote:
I was really excited when Apple released HICocoaView so in
particular I could use NSTextView in my Carbon apps. However, this
thing has some pretty serious performance issue when resizing and
when adding/removing lines (return or deleting while type).
Resizing is painfully slow and choppy but the real issue is typing
return which causes delays, very annoying. Has anyone noticed this
(maybe it's just my code?) and knows of a fix? I'm thinking this
could be partially related to NSScrollView as both the operations
involve scrolling. Honestly I'm surprised this made it to release
with this kind of performance blunder. Any suggestions are greatly
appreciated. Thanks.
Have you sampled? Sharked?
How large is your test? What is it? Have you tried the same text
in TextEdit (which is also based on NSTextView + NSScrollView)? How
does it compare?
You give us almost no information to go on here...
I have used NSTextView in Cocoa windows without the HICocoaView and
there is no problem so I assume this is a HICocoaView issue. Is the
TextEdit example Carbon? Any Carbon example code that used NSTextView
without this error would certainly be useful.
No, I have not done any performance tests because I don't have any
control over the API's, NSScrollView/NSTextView and can not make
optimizations. At around 1000+ lines if you insert/delete lines at
the top (i.e. low offsets) the problem is there. I think anyone who
ever implemented a NSTextView in a HICocoaView would notice this one.
First step I wanted to know if this was a known issue before I spent
time debugging. Thanks.
Cheers,
Marcel
Regards,
Josef
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden