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
-
ronin-756 (at lighthouseapp) March 23rd, 2009 @ 09:38 PM
- Tag set to @needtest
Thanks for your bug report. Do you think you could provide us with sample code that illustrates this bug? You could upload a sample AppController.j here or more simply paste it on http://gist.github.com and link it here. It would definitely help to solve it quickly.
-
admin (at 280north) March 24th, 2009 @ 11:53 PM
- State changed from new to resolved
- Milestone set to 0.7
(from [49accf9fc890ad94b47713718644fdc749fdc7e9]) Fix for CPAttributedString bug #245 [#245 state:resolved milestone:0.7] http://github.com/280north/cappu...
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.
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.
People watching this ticket
Tags
Referenced by
- 246 Docs for CPAttributedString Complete docs. However a modification will be needed when...
- 245 CPAttributedString replaceCharactersInRange:withString: bug (from [49accf9fc890ad94b47713718644fdc749fdc7e9]) Fix for...
- 245 CPAttributedString replaceCharactersInRange:withString: bug (from [49accf9fc890ad94b47713718644fdc749fdc7e9]) Fix for...