NSString may not respond to a method in documentation?
NSString may not respond to a method in documentation?
- Subject: NSString may not respond to a method in documentation?
- From: "Mr. Gecko" <email@hidden>
- Date: Sun, 26 Apr 2009 07:52:41 -0500
Hello, I'm having a weird warning about NSString and I have no idea
why it's happening, maybe you could tell me why?
This is my code.
NSString *string = [[[NSString alloc] initWithData:data
encoding:NSUTF8StringEncoding] autorelease];
NSArray *components = [string componentsSeparatedByCharactersInSet:
[NSCharacterSet characterSetWithCharactersInString:@"\r\n"]];
And this is the warning.
warning: 'NSString' may not respond to '-
componentsSeparatedByCharactersInSet:'
I think this is weird because componentsSeparatedByCharactersInSet is
in the documentation for NSString It still works, but I don't know why
xcode would give me this warning.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden