Re: question about classes, I think
Re: question about classes, I think
- Subject: Re: question about classes, I think
- From: "Alan Smith" <email@hidden>
- Date: Thu, 11 May 2006 22:20:48 -0400
Okay, sorry about that. It wasn't all that clear and my freind was
probably able to understnad it because he is helping out with this
app, but he's mainly working on th UI.
Here is the code:
#import "EVTable.h"
#import "pluginClass.h"
#import "pluginHelper.h"
@implementation EVTable
- (void)awakeFromNib
{
tableContents = [[[NSMutableArray alloc] initWithCapacity:3] retain];
}
- (NSArray*)contents
{
//When logged, nothing is output except "(null)"
NSLog(@" %@ ", tableContents);
return tableContents;
}
- (void)appIsDoneLoading
{
NSLog(@"The files are going to be added to the EV Classic table");
//Collects the path of the folder that the EV Classic plugins
should be stored in.
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *pluginFolder = [[defaults
dictionaryForKey:@"pathForPluginsStorage"] valueForKey:@"3"];
NSMutableArray *contents = [[pluginHelper alloc]
pluginsInFolder:pluginFolder forGame:@"0"];
[contents retain];
tableContents = contents;
[contents release];
//Updates the table
[table reloadData];
NSLog(@"Done putting the files in the EV Classic table");
}
- (void)manageEVPlugins
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *pluginFolder = [[defaults
dictionaryForKey:@"pathForGames"] valueForKey:@"0"];
//By this time the array I want is empty
[[pluginHelper alloc] managePlugins:[self contents]
inGamesFolder:pluginFolder];
}
Any help will be greatly appreicated.
Thanks, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
_______________________________________________
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