Getting warnings


#1

Just after implementing the stack of UIViewcontrollers, I’ve noticed my warnings count is at 6:

Possession.m
Property ‘imageKey’ requires method ‘-imageKey’ to be defined - use @synthesize, @dynamic or provide a method implementation
Property ‘imageKey’ requires the method ‘setImageKey:’ to be defined - use @synthesize, @dynamic or provide a method implementation
Incomplete implementation of class 'Possession’
Method definition for ‘-initWithCoder:’ not found
Method definition for ‘-encodeWithCoder:’ not found
Class ‘Possession’ does not fully implement the ‘NSCoding’ protocol

Are these warnings I should be concerned about? I don’t recall entering anything anywhere about imageKey and all that, nor encoding stuff.


#2

These warnings say that you haven’t synthesized imageKey or implemented initWIthCoder: and encodeWithCoder:. Which are things that you will do in later chapters - were you pulling Possession.h from the solutions and still using your Possessions.m?


#3

not as far as I know. What should i look for?

Nevermind - found it. You were right, Joe - the issue was regarding the possessions.h file, which, unbeknowest to me, got pulled from the solutions rather than my own creation. Now I need to figure out how I managed to do that.