Top "Nsdata" questions

The NSData class is an Apple class for holding generic data.

Is it okay to call +[NSData dataWithData:] with an NSMutableData object?

Is it a problem for me to do the following to change a mutable data instance immutable? NSMutableData *mutData = [[NSMutableData …

objective-c cocoa-touch nsdata nsmutabledata
Read only "N" bytes from a file in Cocoa

How to read only "N" bytes from a specified file?

objective-c cocoa nsdata
CGPDFDocumentRef from NSData

I get my PDF from SQLite DB into a NSData variable. Now what are my options to create CGPDFDocumentRef from …

iphone sqlite pdf nsdata cgpdfdocument
ios - How to calculate CRC-8-Dallas/Maxim of NSData?

I need to calculate exactly CRC-8-Dallas/Maxim. Can someone provide an algorithm? Any help is appreciated!

ios nsdata crc
UIImage created from CGImageRef fails with UIImagePNGRepresentation

I'm using the following code to crop and create a new UIImage out of a bigger one. I've isolated the …

iphone uiimage nsdata cgimage
How to deserialize json object and assign to a NSDictionary in iOS

This is my code for handling server response. - (void)connectionDidFinishLoading:(NSURLConnection *)connection { NSLog(@"connectionDidFinishLoading : %@", [[NSString alloc] initWithData:self.data …

ios json nsdictionary deserialization nsdata
Get the data from NSURLSession DownloadTaskWithRequest from completion handler

So I'm having hard time understanding something. This are the things I understand about NSURSession : Generally , I have 2 options for (…

ios swift nsdata nsurlsession nsurlsessiondownloadtask
iOS: Select a GIF from the photo library, convert to NSData for use in multipart/form-data

What's currently working in my code: I select a JPG or PNG from the Photo Library (using standard ImagePicker methods), …

iphone nsdata gif
Getting data from the nstask - communicating with command line - objective c

I know how to send data to the task: NSData *charlieSendData = [[charlieImputText stringValue] dataUsingEncoding:NSUTF8StringEncoding]; [[[task standardInput] fileHandleForWriting] writeData:…

objective-c nsdata nstask
What is NSConcreteData, and where is it defined?

The following code: [[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:mapURL]] returns an instance of NSConcreteData as opposed to NSData (which I …

iphone cocoa-touch nsdata