• 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: signal 11 (SIGSEGV) error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: signal 11 (SIGSEGV) error


  • Subject: Re: signal 11 (SIGSEGV) error
  • From: Sandy Santra <email@hidden>
  • Date: Fri, 24 Apr 2009 10:23:22 -0400


Thanks for the help, Shawn, Scott, and Joar. I took out the [path release] command and am no longer having (those) problems with the debugger. The initial code has been cleaned up from


	NSString *path = @"~";
	NSString *expandedPath = [expandedPath stringByExpandingTildeInPath];

to

	NSString *path = @"~";
	path = [path stringByExpandingTildeInPath];

to

	NSString *path = [@"~" stringByExpandingTildeInPath];

to

	NSString *path = NSHomeDirectory();

Nice!

Now I have

void PrintPathInfo()	{

NSString *path = NSHomeDirectory(); //Sets NSString object "path" to home directory
NSLog(@"My home folder is at '%@'.", path); //Prints to log screen full home directory path
NSArray *pathComponents = [path pathComponents]; //Sets up array for each of the path components
for (NSString *element in pathComponents) { //Uses "fast enumeration" to iterate through
NSLog(@"%@", element); //path components and print each to log screen
}
}


and am a very happy camper!

Thanks again.

--Sandy Santra







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Debugging a crash in dyld
  • Next by Date: Solved Re: Debugging a crash in dyld
  • Previous by thread: Re: signal 11 (SIGSEGV) error
  • Next by thread: [Updated] Subversion 1.5/1.6 and Xcode 3+ HOWTO
  • Index(es):
    • Date
    • Thread