Guest User

Untitled

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. 2011-07-29 18:01:45.587 RedimV3[12857:407] -[NSURL length]: unrecognized selector sent to instance 0x1023543d0
  2. 2011-07-29 18:01:45.588 RedimV3[12857:407] -[NSURL length]: unrecognized selector sent to instance 0x1023543d0
  3.  
  4. NSArray* files = [oPanel URLs];
  5. NSLog(@"before %@",[files objectAtIndex:0]);
  6. NSMutableString *temp = [[NSMutableString alloc] initWithString:[files objectAtIndex:0]];
  7. [temp deleteCharactersInRange:NSMakeRange(0,15)];
  8. NSLog(@"after :%@",temp);
  9.  
  10. NSArray *files = [oPanel URLs];
  11. NSLog(@"before %@",[files objectAtIndex:0]);
  12. NSString *fileName = [[[files objectAtIndex:0] path] lastPathComponent];
  13. NSLog(@"after :%@",fileName);
  14.  
  15. NSArray *files = [oPanel URLs];
  16. NSURL *file = [files objectAtIndex:0];
  17. NSLog(@"before %@",file);
  18. NSString *localPath = [file path];
  19. NSString *fileName = [localPath lastPathComponent];
  20. NSLog(@"after :%@",fileName);
  21.  
  22. NSURL *myURL = [files objectAtIndex:0];
  23. NSMutableString *string = [NSMutableString stringWithString:[myURL absoluteString]];
  24. [string deleteCharactersInRange:NSMakeRange(0,15)];
  25. NSLog(@"after: %@", string);
Add Comment
Please, Sign In to add comment