• 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
Re: import Header??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: import Header??
      • From: Bill Bumgarner <email@hidden>
References: 
 >import Header?? (From: Bastiaan <email@hidden>)

  • Prev by Date: Problem with Cocoa App on FAT32-formatted external drive
  • Next by Date: Re: Core Data document-based app design decision?
  • Previous by thread: Re: import Header??
  • Next by thread: Re: import Header??
  • Index(es):
    • Date
    • Thread