• 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: question about classes, I think
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: question about classes, I think
      • From: Bill Bumgarner <email@hidden>
    • Re: question about classes, I think
      • From: "Shawn Erickson" <email@hidden>
References: 
 >question about classes, I think (From: "Alan Smith" <email@hidden>)
 >Re: question about classes, I think (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: NSSpellServer problem (``Couldn\'t contact Spell Server\'\')
  • Next by Date: Re: Subviews becoming blurry or "chopped up"
  • Previous by thread: Re: question about classes, I think
  • Next by thread: Re: question about classes, I think
  • Index(es):
    • Date
    • Thread