I am making a highlighter app. It stores everything you've highlighted, and what file you've highlighted it from.
I have a problem, however. I know that all my syntax is correct and that the program should be working. I've tested everything I can think of to try and isolate the problem, and the best conclusion I could come to was that whenever I do setAttributes_range_(styleshere,NSRange(?,?)) it crashes because I am using the currently selected text for the start and ending index ranges in the NSRange object. I don't know why this affects it, but when I use predefined indexes and run the program, it does everything just fine.