• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Compiler doesn't see instance variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler doesn't see instance variable


  • Subject: Compiler doesn't see instance variable
  • From: "Carter R. Harrison" <email@hidden>
  • Date: Sun, 27 Jul 2008 08:51:05 -0400

I'm having an interesting problem today. I'm working with the event- driven XML parser in Core Foundation. For those of you who aren't familiar with that parser, you have to implement at least 3 callback methods:

void *createStructure(CFXMLParserRef parser, CFXMLNodeRef node, void *info)
void addChild(CFXMLParserRef parser, void *parent, void *child, void *info)
void endStructure(CFXMLParserRef parser, void *xmlType, void *info)


Inside the addChild method, I attempt to access an instance variable that is defined within the header file for the source file in which the callback methods are defined. For some reason the compiler is unable to see my instance variables when referenced from these methods. The compiler gives me a "error: 'parseArray' undeclared (first use in this function)".

Any ideas as to what I'm doing wrong?  Thanks in advance.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Compiler doesn't see instance variable
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: Web View silently fails
  • Next by Date: Re: Compiler doesn't see instance variable
  • Previous by thread: Re: Web View silently fails
  • Next by thread: Re: Compiler doesn't see instance variable
  • Index(es):
    • Date
    • Thread