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.
>
>
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 mails | Author | Date |
|---|---|---|
| Gregor Brandt | Nov 9, 23:45 | |
| John Stiles | Nov 9, 23:51 | |
| I. Savant | Nov 9, 23:52 | |
| Gregor Brandt | Nov 9, 23:56 |






Cocoa mail archive

