-1

I am trying to access the property 'data' of an NSObject (socketIOPacket). When I try to access this property, I get a complier error saying : Property 'data' could not be found in forward class object.

When I set a breakpoint, I can see that this object does have a data property

What am I doing wrong? I am fairly new to objective C.

SivaDotRender
  • 1,581
  • 4
  • 21
  • 37
  • You're probably doing something wrong and it probably has something to do with `data`. (This is as much as we can tell you, since you haven't told us anything.) – Hot Licks Sep 16 '14 at 17:18
  • I added screenshots from Xcode. I will add more information if the suggestions below doesn't work. – SivaDotRender Sep 16 '14 at 17:44

1 Answers1

1

What is the name of the class you're trying to access data on? You probably just need to import the .h file into the class from which you're accessing it.

Something like this:

#import "ClassName.h"

Alternately you have to make sure the property is exposed. If data isn't forward facing, i.e. it isn't declared in the header file, then you shouldn't be accessing it anyway.

jervine10
  • 3,039
  • 22
  • 35