Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPAttributedString replaceCharactersInRange:withString: bug

#245

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

Reported by Stephen Ierodiaconou · March 11th, 2009 @ 10:40 AM

State: resolved
Milestone: 0.7
Assigned to: nobody

Activity

  1. ronin-756 (at lighthouseapp)
    ronin-756 (at lighthouseapp)
    • 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.

    March 23rd, 2009 @ 09:38 PM

  2. admin (at 280north)
    admin (at 280north)
    • State changed from new to resolved
    • Milestone set to 0.7

    (from [49accf9fc890ad94b47713718644fdc749fdc7e9]) Fix for CPAttributedString bug #245 CPAttributedString replaceCharactersInRange:withString: bug [#245 CPAttributedString replaceCharactersInRange:withString: bug state:resolved milestone:0.7] http://github.com/280north/cappu...

    March 24th, 2009 @ 11:53 PM

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.