• 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: Using a String Object in another class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a String Object in another class


  • Subject: Re: Using a String Object in another class
  • From: Dustin Voss <email@hidden>
  • Date: Sun, 21 Sep 2003 12:36:18 -0700

On Sunday, September 21, 2003, at 04:57 AM, Kay Lvhmann wrote:

Hello Folks,

i got two Classes:

NSTableViewDelegate and AppController.

In the AppController Class i create a NSString object, which contains Data from TextFile. Now i would like to use this String to fill a NSMutableArray in
the NSTableViewDelegate Class in order to fill the TableView with that data.

I cannot get it to work. Now. How do i get this string into that other class to work with it?

AppController needs a member variable that holds the NSTableViewDelegate instance. The NSTableViewDelegate class needs a method that takes a string and populates the array. The AppController needs to call that method with the string it created, and then needs to call the NSTableView's reloadData method. Simple.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: notifications questions
  • Next by Date: Re: NSDictionary ordering
  • Previous by thread: Using a String Object in another class
  • Next by thread: Re: Using a String Object in another class
  • Index(es):
    • Date
    • Thread