Tech and a few other things RSS 2.0
# Wednesday, April 21, 2010

When is the right time to use dot notation vs bracket notation in objective C, or should I not use dot notation at all? I searched around for information on this, read quite a few opinions, but this blog post seems to give an answer of why.  I quote the most important part; I suggest you don't read the blog post. The post is very technical and what you really want to know is right below here. If you need to know the details, eschatology does a great job at giving them.

Most important parts of blog post:
  • Use dot notation to get and set objects’ state.
  • Use bracket notation to invoke objects’ behavior.

Eschatology -- http://eschatologist.net/blog/?p=160

A bit of a dark name for a blog, but the name doesn't affect the quality of the post.

Wednesday, April 21, 2010 6:50:48 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Mac | Objective C
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, i, strike, strong, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview
Navigation
About the author/Disclaimer
        
My name is Ben Coffman. I'm in love with all things Mac yet I make a living in .NET. I view this as well rounded. When I turn the internet off I focus on family, random hobbies, and sharing moments in life.

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Ben Coffman

Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
All Content © 2010,

Sign In