• 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: Accessing variables across classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing variables across classes


  • Subject: Re: Accessing variables across classes
  • From: Brett Powley <email@hidden>
  • Date: Mon, 19 May 2008 15:06:41 +1000

MyAppDelgate *ad = [NSApp delegate];
then do something with [ad myMutableArray]

Cheers,
Brett


On 19/05/2008, at 3:03 PM, Joey None wrote:

Hello all,

I hope someone can help me with this.

I have my ApplicationDelegate which contains a couple of NSMutableArrays with data in them.

Then I have a few CustomNSViews classes which I have sub-classed.

I need to access the NSMutableArrays declared on the AppDelegate class from the NSView sub-classes I have created.

Any ideas on how to do this? I know there has to be a way and have spent all night looking for it but so far no luck.

Thank you very much for all your help!
JC



_______________________________________________

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:
@process.com.au


This email sent to email@hidden

_______________________________________________

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: Accessing variables across classes
      • From: Andrew Farmer <email@hidden>
References: 
 >Accessing variables across classes (From: Joey None <email@hidden>)

  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Re: Is there an NSCollectionView selection change notification?
  • Previous by thread: Accessing variables across classes
  • Next by thread: Re: Accessing variables across classes
  • Index(es):
    • Date
    • Thread