• 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
String retrieval error... Please help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String retrieval error... Please help


  • Subject: String retrieval error... Please help
  • From: Brian Ganninger <email@hidden>
  • Date: Sun, 13 Apr 2003 22:08:35 -0500

Greetings all,

I've been banging my head against the wall for hours and I can't figure out
why this is causing me such problems so I'm hoping all the talented
programmers of this list can tell me how I'm stupid.

while((object = [enumerator nextObject]) && (object2 = [enumerator2
nextObject]))
{
volume = [volumeMatrix objectAtIndex:updateLoop];
if([volume useState] == YES)
{
percentUsed = object2;
[self saveBackupIcon:object];
pathToIcon = [volume volumeIconPath];
[self setDriveIcon:object usingIcon:pathToIcon];
}
updateLoop++;
}

Object is an array with string paths, object2 is an array with strings, all
variables other than object, object2, & volume (and updateLoop) are global.
The volumeMatrix is a mutable array containing objects. Each is a 'volume',
which is just an instance of one of my custom classes.

The volumeIconPath method is just a simple return method to return the
volumeIconPath string from inside the volume.

PathToIcon becomes invalid after this command which then crashes my app.

Any help is greatly appreciated as I don't want to throw my computer through
the wall! :P

- Brian Ganninger
_______________________________________________
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.

  • Follow-Ups:
    • Re: String retrieval error... Please help
      • From: Lloyd Dupont <email@hidden>
  • Prev by Date: about install_name_tool
  • Next by Date: Re: String retrieval error... Please help
  • Previous by thread: Re: about install_name_tool
  • Next by thread: Re: String retrieval error... Please help
  • Index(es):
    • Date
    • Thread