#245 ✓resolved
Stephen Ierodiaconou

CPAttributedString replaceCharactersInRange:withString: bug

Reported by Stephen Ierodiaconou | March 11th, 2009 @ 10:40 AM | in 0.7

If a zero length range is passed as the range for the character replacement the method dies and inspector reports "undefined value" line 229

Accroding to http://developer.apple.com/docum...//apple_ref/occ/instm/NSMutableAttributedString/replaceCharactersInRange:withString:

i think the method should allow zero length for the range and effectively insert the string at the specified index and inherit the attrbutes of the previous (or if at index 0 following) character

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket


Referenced by