Re: Using a String Object in another class
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.