nil pointers
nil pointers
- Subject: nil pointers
- From: "Adam Johnson" <email@hidden>
- Date: Mon, 10 Jul 2006 22:59:14 -0400
why do Cocoa developers declare pointers as nil, then define them?
ex.
NSMethodSignature * sig = nil;
sig = [[self class] instanceMethodSignatureForSelector:mySelector];
wouldn't it be easier just to do this?
NSMethodSignature * sig = [[self class]
instanceMethodSignatureForSelector:mySelector];
Thanks in advance for clarifying this
--Adam Johnson
_______________________________________________
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