Skip navigation.
 
mlRe: NSString subStringToIndex gives EXC_BAD_ACCESS
FROM : Gregor Brandt
DATE : Fri Nov 09 23:56:35 2007

ack!  Beginner error....thanks

Gregor

On 9-Nov-07, at 3:52 PM  , I. Savant wrote:

>>    NSString *projectName;

> ...

>>        [projectName initWithString:[title 
>> substringToIndex:realLength]];

>
>
>  Unless you have a very good reason not to, alloc and init... at the 
> same time. This advice is repeated constantly and should not be 
> ignored. :-)
>
> --
> I.S.
>
>

Related mailsAuthorDate
mlNSString subStringToIndex gives EXC_BAD_ACCESS Gregor Brandt Nov 9, 23:45
mlRe: NSString subStringToIndex gives EXC_BAD_ACCESS John Stiles Nov 9, 23:51
mlRe: NSString subStringToIndex gives EXC_BAD_ACCESS I. Savant Nov 9, 23:52
mlRe: NSString subStringToIndex gives EXC_BAD_ACCESS Gregor Brandt Nov 9, 23:56