Re: import Header??
Re: import Header??
- Subject: Re: import Header??
- From: Andrew Farmer <email@hidden>
- Date: Fri, 25 Aug 2006 07:48:05 -0700
On 25 Aug 06, at 06:49, Bastiaan wrote:
I imported "MyDocument.h" into "MyDownload.h", i was hoping this
was enough but now it gives me an error during a compile
'logoArrayController' undeclared (first use in this function)
LogoArrayController is named in MyDocument.h as an outlet, why does
it give me the error above and how can i solve it so that i can
make use of the ArrayController in MyDownload?
You can't directly reference instance variables of another class -
how is the computer to know which MyDocument you're trying to get the
logoArrayController of? You need to set up some way for a MyDownload
object to know what MyDocument object it belongs to, then dereference
it using the -> operator (e.g. aDocument->logoArrayController).
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden