[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setter Gettor method style
From: |
Pascal Bourguignon |
Subject: |
Re: Setter Gettor method style |
Date: |
Sun, 4 Aug 2002 00:25:24 +0200 (CEST) |
> From: Alexander Malmberg <alexander@malmberg.org>
> Date: Sat, 03 Aug 2002 21:22:01 +0200
>
> > > - (NSString *) title {
> > > return [[title retain] autorelease];
> >
> > This is strictly equivalent to { return title; }
>
> This is not true. I've fixed bugs in Pantomime caused by this.
>
> - Alexander Malmberg
Agree. But the case where the difference matter would not occur in my
book because I have the rule to retain all objects I need:
NSString* title=[[stuff title]retain];
[stuff setTitle:newTitle];
NSLog(@"old title was %@\n",title);
[title release];
In my little mind, it's simplier to have simple rules to be applied
always without exceptions.
--
__Pascal_Bourguignon__ http://www.informatimago.com/
----------------------------------------------------------------------
- ANNOUNCE: netclasses 0.96, Andy Ruder, 2002/08/03
- Setter Gettor method style, Martin Häcker, 2002/08/03
- Re: Setter Gettor method style, Pascal Bourguignon, 2002/08/03
- Re: Setter Gettor method style, Martin Häcker, 2002/08/03
- Re: Setter Gettor method style, Alexander Malmberg, 2002/08/03
- Re: Setter Gettor method style,
Pascal Bourguignon <=
- Re: Setter Gettor method style, Martin Häcker, 2002/08/04
- Re: Setter Gettor method style, Alexander Malmberg, 2002/08/04
- Re: Setter Gettor method style, Martin Häcker, 2002/08/04
- Re: Setter Gettor method style, Pascal Bourguignon, 2002/08/04
- Re: Setter Gettor method style, Martin Häcker, 2002/08/05
- Message not available
- Re: Setter Gettor method style, Pascal Bourguignon, 2002/08/04
- Re: Setter Gettor method style, Martin Häcker, 2002/08/04
- Re: Setter Gettor method style, Pascal Bourguignon, 2002/08/04
- Re: Setter Gettor method style, Alexander Malmberg, 2002/08/04
- Re: Setter Gettor method style, Pascal Bourguignon, 2002/08/04