On Jun 4, 2008, at 3:54 PM, Steven Moore wrote:
With both of these changes in place, and a bit of optimization on my part (apparently, [[myTextView textStorage] paragraphs] comes with a lot of overhead.. not surprising, when I think about it), my app is in much better shape. I think the garbage collection helped the most.. pretty nifty stuff!
Anything in NSTextStorageScripting.h (like -paragraphs) is really intended for scripting only; stay away from it for other purposes. You should file a bug against the documentation to include a warning to that effect. If you want to go through text by paragraphs, you should use [[textStorage string] paragraphRangeForRange:] or related methods.
Douglas Davidson _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]