Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2011-07-29 18:01:45.587 RedimV3[12857:407] -[NSURL length]: unrecognized selector sent to instance 0x1023543d0
- 2011-07-29 18:01:45.588 RedimV3[12857:407] -[NSURL length]: unrecognized selector sent to instance 0x1023543d0
- NSArray* files = [oPanel URLs];
- NSLog(@"before %@",[files objectAtIndex:0]);
- NSMutableString *temp = [[NSMutableString alloc] initWithString:[files objectAtIndex:0]];
- [temp deleteCharactersInRange:NSMakeRange(0,15)];
- NSLog(@"after :%@",temp);
- NSArray *files = [oPanel URLs];
- NSLog(@"before %@",[files objectAtIndex:0]);
- NSString *fileName = [[[files objectAtIndex:0] path] lastPathComponent];
- NSLog(@"after :%@",fileName);
- NSArray *files = [oPanel URLs];
- NSURL *file = [files objectAtIndex:0];
- NSLog(@"before %@",file);
- NSString *localPath = [file path];
- NSString *fileName = [localPath lastPathComponent];
- NSLog(@"after :%@",fileName);
- NSURL *myURL = [files objectAtIndex:0];
- NSMutableString *string = [NSMutableString stringWithString:[myURL absoluteString]];
- [string deleteCharactersInRange:NSMakeRange(0,15)];
- NSLog(@"after: %@", string);
Add Comment
Please, Sign In to add comment