fjcaetano / NSStringMask

NSStringMask allows you to apply masks or formats to NSStrings using NSRegularExpression to input your format.
http://fjcaetano.github.io/NSStringMask/
MIT License
241 stars 36 forks source link

Code works fine but generates erros log messages #3

Closed ghost closed 9 years ago

ghost commented 10 years ago

When I input number into UITextField I get these log messages from the console:

2014-01-06 14:25:50.123 Locgames[1437:70b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x8d93280 {NSInvalidValue=\d{1,4294967295}} 2014-01-06 14:25:50.125 Locgames[1437:70b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x8d93280 {NSInvalidValue=\d{1,4294967295}} 2014-01-06 14:25:50.128 Locgames[1437:70b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x8cc4d10 {NSInvalidValue=\d{1,4294967295}} 2014-01-06 14:25:50.129 Locgames[1437:70b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x8cc4d10 {NSInvalidValue=\d{1,4294967295}}

Any idea what these mean?

fjcaetano commented 10 years ago

Is this still an issue or was it solved?

ghost commented 10 years ago

Still an issue

fjcaetano commented 10 years ago

@MarcoAureli0 weird. I'm not having warnings here. Can you tell me exactly what you are trying to do? What are your string and pattern? (eg: [NSStringMask maskString:@"123" withPattern:@"(\\d)"];)

ghost commented 10 years ago

NSStringMask *mask = [NSStringMask maskWithPattern:@"(\d{3}).(\d{3}).(\d{3})-(\d{2})"];

lucianocn commented 10 years ago

@fjcaetano same here. Do you have any idea?

_tfCPF.mask = [NSStringMask maskWithPattern:@"(\\d{3}).(\\d{3}).(\\d{3})-(\\d{2})"];

Log:

2014-06-25 23:56:22.018 App[20193:60b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x10b7c3610 {NSInvalidValue=\d{1,18446744073709551615}}
2014-06-25 23:56:22.019 App[20193:60b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x10b7c3610 {NSInvalidValue=\d{1,18446744073709551615}}
2014-06-25 23:56:22.020 App[20193:60b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x10b7e18e0 {NSInvalidValue=\d{1,18446744073709551615}}
2014-06-25 23:56:22.020 App[20193:60b] Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x10b7e18e0 {NSInvalidValue=\d{1,18446744073709551615}}
fjcaetano commented 9 years ago

Loooong overdue