• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
nil pointers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: nil pointers
      • From: Uli Kusterer <email@hidden>
    • Re: nil pointers
      • From: j o a r <email@hidden>
    • Re: nil pointers
      • From: Agent M <email@hidden>
    • Re: nil pointers
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: NSZombie issue?
  • Next by Date: Re: nil pointers
  • Previous by thread: NSZombie issue?
  • Next by thread: Re: nil pointers
  • Index(es):
    • Date
    • Thread