Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
- Subject: Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
- From: Graham cox <email@hidden>
- Date: Thu, 28 Oct 2004 09:15:43 +1000
Is that you Adrian, from UEA? Contact me off-list, we'll catch up! :)
On 27/10/2004, at 5:49 PM, Adrian Bool wrote:
Need to agree with Apple on the pointers,
varname* fred, wilma ;
Looks like it will create two varname pointers where in fact you
naturally would get one varname pointer and one varname. Keeping the
stars with the variables then fits better,
varname *fred, *wilma ;
Agreed, but this:
varname* fred;
varname* wilma;
is even more readable. Though I must admit I rarely take it that far.
In practice I change the associativity if I list more than one pointer
of the same type. This doesn't seem to occur that often.
I too hate such curly bracket placement in Apple's script.. Although
I prefer to indent the brackets - but that seems to be just me and the
author of exim AFAIR * ;-)
- (void) foo: (NSWhatever*) bar
{
varname *foobar;
// do stuff
}
Well at least you drop the opening bracket below the method header
line...
cheers, Graham
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden