user520300
user520300

Reputation: 1527

NSMutableData with Expression of Type NSData Warning

I've opened my project within xCode 6 GM Seed and am now getting some new warnings. This is one warning "Incompatible pointer types initializing 'NSMutableData *' with an expression of type 'NSData *'? How to resolve this?

NSMutableData *data=[NSData dataWithContentsOfFile:pdfFileName];

Upvotes: 0

Views: 336

Answers (1)

James Snook
James Snook

Reputation: 4093

change to this:

NSMutableData *data=[NSMutableData dataWithContentsOfFile:pdfFileName];

Upvotes: 2

Related Questions