caseInsensitiveCompare


#1

On page 140-1 we are asked to set Sort Key to ‘personName’ and Selector to ‘caseInsensitiveCompare’ for Table Column ‘Name’.

However, I’m not getting a sort but an error

2011-12-11 13:08:44.106 RaiseMan[1916:707] -[__NSCFString caseInsensitiveCompare]: unrecognized selector sent to instance 0x100667e40
2011-12-11 13:08:44.108 RaiseMan[1916:707] -[__NSCFString caseInsensitiveCompare]: unrecognized selector sent to instance 0x100667e40

Sort on expectedRaise works

Any suggestions? Thanks db

I’ll continue with ‘compare’ which worked OK.

Adding ‘compare’ to Selector gives the error
2011-12-11 13:18:50.889 RaiseMan[1960:707] -[__NSCFString compare]: unrecognized selector sent to instance 0x100144aa0

Leaving Sort Key and Selector blank worked, except for the case sensitivity.


#2

OK, missing ‘:’

caseInsensitiveCompare: works

caseInsensitiveCompare doesn’t :wink:


#3

Same here. Putting caseInsensitiveCompare: into the selector field doesn’t change the sorting.


#4

Same here. I also tried the big nerd ranch solution but the sorting works badly too. I’m using Xcode 4.3.3. Any sugestions.

Thank you
brunjak