iPhone / iPad

Apple iOS development chat. This room has a FAQ at ios-develop...
Sep 7, 2011 13:18
@IphoneDeveloper, What idea you need about that app?
Sep 7, 2011 13:18
@iphon
Sep 7, 2011 13:08
@ArchanaChaurasia, No you can't do that.
Sep 7, 2011 13:08
@Ar
Sep 6, 2011 12:24
Inga enna nadakuthu?
Sep 6, 2011 09:53
@Naresh, Hi man!
Sep 6, 2011 09:34
@Aadil, Sorry man! I don't have any idea about it!
Sep 6, 2011 09:13
Whats going on here!
Sep 6, 2011 09:12
Yes
Jun 6, 2011 10:57
Any useful discussion is going on here? I wish I'd join.
Jun 6, 2011 10:56
How are you all?
Jun 6, 2011 10:54
Hi
 
Sep 3, 2011 07:13
Alright. You know the method is a accessor of a conceptual property. How does Objective-C know it? It thinks its just a normal method. Isn't it?
Sep 2, 2011 05:45
I don't think its the case!
Sep 2, 2011 05:44
So you guys are telling that accessing a normal method(not a setter/getter of a @property) using Dot Syntax is completely alright in Apple's perspective too.
Sep 1, 2011 13:40
You sure you are not joking!
Sep 1, 2011 13:40
;-)
Sep 1, 2011 13:39
Yes. Its not a property.
Sep 1, 2011 13:39
Not only because of side effects, its generally not advised to use dot syntax to access non getter/setter methods.
Sep 1, 2011 13:33
While you declare @property(getter=theColor), then you are explicitly telling the compiler that the getter is theColor not just color.
Sep 1, 2011 13:31
If you don't declare it as a @property, -(UIColor)color would be just an normal method(Not a getter of a property).
Sep 1, 2011 13:28
Yes. Literally speaking.
Sep 1, 2011 13:27
Objective-C treats a property as a property only if is declared as @property.
Sep 1, 2011 13:27
I am afraid ;-)
Sep 1, 2011 13:26
How could it be?
Sep 1, 2011 13:26
So, responseString is an property.
Sep 1, 2011 13:25
Didn't you do through these lines, "Incorrect Use of Dot Syntax

The code patterns that follow are strongly discouraged because they do not conform to the intended use of dot syntax, namely for invoking an accessor method."
Sep 1, 2011 13:24
Apple allowed dot syntax to access properties to make them behave as normal variables
Sep 1, 2011 13:22
But Apple says that "It is strongly discouraged to use dot syntax to call methods".
Sep 1, 2011 13:16
You can't code mental concepts in programming languages. You still don't understand what a method is. Even though your method contains single line like return someOtherProperty;, that is a method. If you create declared properties, compiler will create getter and setter methods for the property. Both getters and setters are methods only.
Sep 1, 2011 13:16
Accessing a property using dot syntax will invoke the getter/setter methods only. So the doc says that properties are allowed to access their getter/setters using dot syntax and not to use the dot syntax to call normal methods(not a getter or setter).
Sep 1, 2011 13:16
@Martin Wickman, What do you mean by a conceptual string property?
Sep 1, 2011 13:16
@Martin Wickman, responseString is a method like lockFocusIfCanDraw in Doc, no matter you call it as conceptual accessor method or whatever you like.
Sep 1, 2011 13:16
@Martin Wickman, I think you don't understand the doc. You example and doc example are similar.
Sep 1, 2011 13:16
Who is the down voter?