| Paste number 46622: | NSString disappears |
| Pasted by: | Tao` |
| When: | 1 year, 10 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+ZZ2 |
| Channel: | #macdev |
| Paste contents: |
/*
How is it possible that this value disappears? This is in an NSTextField delegate.
*/
- (BOOL)control:(NSControl *)control didFailToFormatString:(NSString *)string errorDescription:(NSString *)error
{
NSLog(@"%s", _cmd);
NSLog(@"string %@", string);
NSLog(@"[[control cell] stringValue] %@", [[control cell] stringValue]);
NSLog(@"[[control cell] stringValue] %@", [[control cell] stringValue]);
NSLog(@"string %@", string);
......
}
/*
2007-08-23 14:29:30.546 One[6675] control:didFailToFormatString:errorDescription:
2007-08-23 14:29:30.546 One[6675] string 5
2007-08-23 14:29:30.547 One[6675] [[control cell] stringValue] 5
2007-08-23 14:29:30.547 One[6675] [[control cell] stringValue]
2007-08-23 14:29:30.547 One[6675] string
*/This paste has no annotations.