The following code snippet compiles fine but gives an bad access
error on run....any ideas
NSString *projectName;
NSString *title = @"This is a test";
// and parse the project name to remove the [TM] from the end
NSUInteger realLength = title.length - 4;
if ( realLength > 0 )
{
[projectName initWithString:[title
substringToIndex:realLength]];
}
Thanks
Gregor
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com