• 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: Bill Bumgarner <email@hidden>
  • Date: Fri, 25 Aug 2006 08:10:08 -0700

On Aug 25, 2006, at 7:48 AM, Andrew Farmer wrote:
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).

While that would work, please don't do that. It completely breaks the encapsulation of data and logic of MyDocument.


I would suggest starting with a good Cocoa book (Hillegas's book comes to mind).

b.bum

_______________________________________________
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


References: 
 >import Header?? (From: Bastiaan <email@hidden>)
 >Re: import Header?? (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Re: iTunes and AppleScript
  • Next by Date: Re: NSDatePickerCell -- Ever Worked ??
  • Previous by thread: Re: import Header??
  • Next by thread: Problem with Cocoa App on FAT32-formatted external drive
  • Index(es):
    • Date
    • Thread