Error with return


#1

In chapter 28 I have typed in the lines of code up to the part where we allow it to save. After typing in the part that allows one to save I get an error from the last line of code

The error says incompatible integer to pointer conversion returning int from a function with result type NSData.

Any ideas?


#2

Never mind. I mistyped something. Also noticed that there is a dataWithPropertyList and a propertyListWithData