Top "Nsstring" questions

NSString is the plain-text character-string class in Cocoa and Cocoa Touch.

Cocoa - Trim all leading whitespace from NSString

(have searched, but not been able to find a simple solution to this one either here, or in Cocoa docs) …

cocoa nsstring whitespace trim
NSString to CFStringRef and CFStringRef to NSString in ARC?

I am trying to understand the correct way of getting an NSString from a CFStringRef in ARC? Same for going …

objective-c nsstring automatic-ref-counting toll-free-bridging
NSString stringWithFormat adding a percent

How can I add a percent to my stringWithFormat function? For example, I'd like to have the following: float someFloat = 40.233…

iphone ios nsstring stringwithformat
How to parse NSString into BOOL in Objective-C?

I am programming in Objective-C for iOS. I would like to parse an object of type NSString into a scalar …

objective-c cocoa nsstring boolean
Check if NSString instance is contained in an NSArray

I have an array with a bunch of strings and I want to check if a certain string is contained …

cocoa nsstring nsarray
Getting index of a character in NSString with offset & using substring in Objective-C

I have a string! NSString *myString=[NSString stringWithFormat:@"This is my lovely string"]; What I want to do is: Assuming …

objective-c ios nsstring substring nsrange
Get the extension of a file contained in an NSString

I have an NSMutable dictionary that contains file IDs and their filename+extension in the simple form of fileone.doc …

iphone objective-c regex ios5 nsstring
Returning an NSString from an NSError

I am using the NSURLRequest class in my iPhone app, and the method that calls it returns an NSString which …

objective-c nsstring nserror
How to separate string by space using Objective-C?

Assume that I have a String like this: hello world this may have lots of sp:ace or little space …

objective-c nsstring nsarray whitespace
converting data back into a string

So I have this: NSData *charlieSendData = [[charlieImputText stringValue] dataUsingEncoding:NSUTF8StringEncoding]; I know how to convert NSStrings to data but …

objective-c nsstring nsdata