• 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
Re: Cocoa-dev Digest, Vol 5, Issue 1040
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 5, Issue 1040


  • Subject: Re: Cocoa-dev Digest, Vol 5, Issue 1040
  • From: Ashley Perrien <email@hidden>
  • Date: Thu, 12 Jun 2008 11:50:33 -0500

In the original example, myNum was being passed as a argument rather
than having a message to sent to it and itÂ’s often not safe to pass
nil objects as arguments.

Hmmm... well, what's the function it's passed to going to do with it, other than call a method on it? If it's doing anything else, it's breaking other (much stronger) rules.

Okay, so question 2: what else could be done other than calling methods on it? I'm using NSNumbers in place of ints, floats and so on partly as a learning exercise and partly to make it easier to convert the number types rather than casting them. The library I had put together (which was just an object with no instance variables) originally used all floats (it's a math heavy library).


Ashley_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Authentication and NSURLConnection sendSynchronousRequest
  • Next by Date: Accessors Question
  • Previous by thread: Re: how to prevent sleep mode when app is running
  • Next by thread: Accessors Question
  • Index(es):
    • Date
    • Thread