Re: who does like Objective-C 2.0 "properties" dot syntax ?

2009-02-20 Thread Greg Beaver
Hi, I have to agree with Quincey here. Quincey Morris wrote: > On Feb 20, 2009, at 16:17, Erik Buck wrote: > >> What is the redeeming value of the Objective-C 2.0 properties dot >> syntax ? >> >> I don't get it. I see lots of posts from other people wh

Re: who does like Objective-C 2.0 "properties" dot syntax ?

2009-02-20 Thread Alex Kac
Just to say - I agree with you 100%. I personally love the dot syntax as synctatic sugar and I understand what it is. But I love that I can read my code and simply visualize better properties vs actions (in my own mind that is how I think about them) and as much as I like the Obj- C bracket

Re: who does like Objective-C 2.0 "properties" dot syntax ?

2009-02-20 Thread Quincey Morris
On Feb 20, 2009, at 16:17, Erik Buck wrote: What is the redeeming value of the Objective-C 2.0 properties dot syntax ? I don't get it. I see lots of posts from other people who don't get it. Who does get it ? OK, I'll bite, though there is of course no good outcome to

Re: What are the limitations of Dot Syntax?

2008-12-06 Thread jmunson
Of course that is true. No implication otherwise was meant or intended. I was merely establishing a point-of-reference. Hence the "...at least..." after "...Windows world...". Now, back to the coding... :D Peace, Love, and Light, /s/ Jon C. Munson II Quoting Alex Kac <[EMAIL PROTECTED]>

Re: What are the limitations of Dot Syntax?

2008-12-06 Thread Bill Bumgarner
... go for it. Seriously -- there isn't a hard defined line for this. Personally, I initially found code like the above distasteful when I was first writing code with the dot syntax. At first, my thinking was much more hardline "if it is a setter/getter, use dot. Otherwise

Re: What are the limitations of Dot Syntax?

2008-12-06 Thread jmunson
Namaste! I'm going to add my two cents here (despite being a noob). I like the dot syntax. Why? (and before I go any further, I realize this is not a Windows forum, and also realize this is a very general set of statements and quite open to debate) Because, in the Windows world at

Re: What are the limitations of Dot Syntax?

2008-12-06 Thread Charles Srstka
On Dec 5, 2008, at 10:06 PM, Bill Bumgarner wrote: Not really. 'name' is still something that is an accessor type thing, regardless of whether it is derived or declared via @property() "dot abuse" refers to expressions like: foo.retain; bar.lockFocusIfCanDraw; That is, expressions where yo

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
*/ Yes, that's true Jim, I have used that readonly thing for dependent/ derived attributes, and it is likely that I would do as you just did. But when under stress, not guaranteed! On 2008 Dec, 05, at 20:06, Bill Bumgarner wrote: the dot syntax is 100% orthogonal to the @property s

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Bill Bumgarner
On Dec 5, 2008, at 7:55 PM, Jerry Krinock wrote: I understand why this must be so, but it makes the dot syntax difficult to use in practice. When writing a message, I have to stop and think, "Gee did I declare that as a property or not?" If I'm not sure, and have

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jim Correia
On Dec 5, 2008, at 10:55 PM, Jerry Krinock wrote: On 2008 Dec, 05, at 18:40, Chris Hanson wrote: Dot syntax compiles to objc_msgSend* just like bracket syntax does. However, it must see either getter/setter declarations or an @property declaration to know what selector to put in the

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Clark Cox
On Fri, Dec 5, 2008 at 7:55 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: > > On 2008 Dec, 05, at 18:40, Chris Hanson wrote: > >> Dot syntax compiles to objc_msgSend* just like bracket syntax does. >> However, it must see either getter/setter declarations or an @prop

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
On 2008 Dec, 05, at 18:40, Chris Hanson wrote: Dot syntax compiles to objc_msgSend* just like bracket syntax does. However, it must see either getter/setter declarations or an @property declaration to know what selector to put in the objc_msgSend* that it compiles to. I understand why

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Chris Hanson
ot use dot syntax from. By casting the return value of -[NSSet anyObject] to (Bird *) you're giving the compiler the information it needs to handle the .name construct. Dot syntax compiles to objc_msgSend* just like bracket syntax does. However, it must see either getter/setter dec

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Luke Hiesterman
The compiler must be able to resolve the class for dot syntax to work. Try casting. Luke Sent from my iPhone. On Dec 5, 2008, at 4:32 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Sy

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
On 2008 Dec, 05, at 16:44, glenn andreas wrote: On Dec 5, 2008, at 6:32 PM, Jerry Krinock wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Bill Bumgarner
On Dec 5, 2008, at 4:32 PM, Jerry Krinock wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the answer to when I read about Objective-C 2.0 Prop

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread glenn andreas
On Dec 5, 2008, at 6:32 PM, Jerry Krinock wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the answer to when I read about Objective-C 2.0 Prop

What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the answer to when I read about Objective-C 2.0 Properties is: Can you use the dot syntax for "re

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-20 Thread Jean-Daniel Dupas
Le 20 juil. 08 à 16:31, Clark Cox a écrit : On Sun, Jul 20, 2008 at 4:17 AM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: Le 20 juil. 08 à 10:33, Ken Thomases a écrit : On Jul 18, 2008, at 11:53 PM, Rick Mann wrote: I realize after all this, it's not really the Dot Syntax I nee

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-20 Thread Clark Cox
On Sun, Jul 20, 2008 at 4:17 AM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > > Le 20 juil. 08 à 10:33, Ken Thomases a écrit : > >> On Jul 18, 2008, at 11:53 PM, Rick Mann wrote: >> >>> I realize after all this, it's not really the Dot Syntax I nee

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-20 Thread mmalc crawford
On Jul 20, 2008, at 4:17 AM, Jean-Daniel Dupas wrote: The dot syntax uses the getter and setting specified for the property in the @property declaration. As documented[1], if you don't explicitly supply getter or setter names in that directive, it defaults to the property name fo

Re: Dot Syntax docs missing?

2008-07-20 Thread Bill Royds
ind the Objective-C syntax much cleaner than the C++ template based syntax, especially the complicated method call syntax. I started Object oriented programming with Simula 67, then Smalltalk, so C++ was the anomaly, not Objective-C. Syntax ease depends on your experience as much as inherent dif

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-20 Thread Jean-Daniel Dupas
Le 20 juil. 08 à 10:33, Ken Thomases a écrit : On Jul 18, 2008, at 11:53 PM, Rick Mann wrote: I realize after all this, it's not really the Dot Syntax I need. I need to know how a property name (starts with lower-case letter) is transliterated into the getter/setter names. Th

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-20 Thread Ken Thomases
On Jul 18, 2008, at 11:53 PM, Rick Mann wrote: I realize after all this, it's not really the Dot Syntax I need. I need to know how a property name (starts with lower-case letter) is transliterated into the getter/setter names. The dot syntax uses the getter and setting specified fo

Re: Dot Syntax docs missing?

2008-07-19 Thread Michael Ash
On Sat, Jul 19, 2008 at 9:34 PM, Ian Joyner <[EMAIL PROTECTED]> wrote: > On 19/07/2008, at 11:36 PM, Michael Ash wrote: > >> The universe of programming languages extends far beyond this little >> island of ALGOL-lookalikes. Objective-C messaging syntax is utterly >> mundane compared to many common

Re: Dot Syntax docs missing?

2008-07-19 Thread Marcel Weiher
On Jul 19, 2008, at 18:34 , Ian Joyner wrote: On 19/07/2008, at 11:36 PM, Michael Ash wrote: The universe of programming languages extends far beyond this little island of ALGOL-lookalikes. Objective-C messaging syntax is utterly mundane compared to many common, useful syntaxes used in practi

Re: Dot Syntax docs missing?

2008-07-19 Thread Ian Joyner
in the actual definition. Definitely something else is going on, I think. I would advise you to embrace and learn both the dot syntax and square brackets. Well, I'm forced to use the square brackets for method calls (excuse me, "message sends"), and I love square br

Re: Dot Syntax docs missing?

2008-07-19 Thread Michael Ash
definition. Definitely something > else is going on, I think. > >> I would advise you to embrace and learn both the dot syntax and square >> brackets. > > Well, I'm forced to use the square brackets for method calls (excuse me, > "message sends"), and I love

Re: Dot Syntax docs missing?

2008-07-19 Thread Andy Lee
Ah. And a Google for ["dot syntax" site:developer.apple.com] would have turned that up right away. --Andy On Jul 19, 2008, at 2:54 AM, mmalc crawford wrote: On Jul 18, 2008, at 10:16 PM, Andy Lee wrote: Interesting... the online doc is missing a couple of sections that my Xco

Re: Dot Syntax docs missing?

2008-07-18 Thread mmalc crawford
On Jul 18, 2008, at 10:16 PM, Andy Lee wrote: Interesting... the online doc is missing a couple of sections that my Xcode doc has. I'm looking here:

Re: Dot Syntax docs missing?

2008-07-18 Thread Andy Lee
On Jul 19, 2008, at 1:01 AM, Rick Mann wrote: On Jul 18, 2008, at 21:53:45, Andy Lee wrote: How up-to-date are your docs? Maybe the Dot Syntax section wasn't written yet in your version of the docs. I was looking online, at the ADC website. I'll check Xcode. Interesting...

Re: Dot Syntax docs missing?

2008-07-18 Thread Rick Mann
On Jul 18, 2008, at 21:51:57, Jerry Krinock wrote: setEp1: should work. The colon is significant and is a part of the method name. In fact, I do have the colon in the actual definition. Definitely something else is going on, I think. I would advise you to embrace and learn both the dot

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-18 Thread Rick Mann
On Jul 18, 2008, at 22:00:56, Andy Lee wrote: I haven't used either properties or dot syntax myself, but in the sidebar of the Objective-C 2.0 doc I see a "Declared Properties" section with a "Using Properties" subsection which has a "Property Declaration&

Re: Dot Syntax docs missing?

2008-07-18 Thread Glenn L. Austin
On Jul 18, 2008, at 8:58 PM, Rick Mann wrote: Where is the description of the dot syntax? The top of the Obj-C 2.0 docs (Properties section) refers you "Dot Syntax." A search of ADC turns up the first hit: Look for Graphviz. ___

Re: Dot Syntax docs missing?

2008-07-18 Thread Rick Mann
On Jul 18, 2008, at 21:53:45, Andy Lee wrote: How up-to-date are your docs? Maybe the Dot Syntax section wasn't written yet in your version of the docs. I was looking online, at the ADC website. I'll check Xcode. -- Rick ___

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-18 Thread Andy Lee
On Jul 19, 2008, at 12:53 AM, Rick Mann wrote: I realize after all this, it's not really the Dot Syntax I need. I need to know how a property name (starts with lower-case letter) is transliterated into the getter/setter names. I haven't used either properties or dot syntax myse

Re: Dot Syntax docs missing?

2008-07-18 Thread Andy Lee
The Xcode doc window is your friend. I did a search for "dot syntax" and "The Dot Syntax" was the second hit. > Here's the link to my Obj-C 2.0 docs: > For me, there's a link on the sidebar to "The Dot Syntax". Do you not have this link?

property name-to-accessor munging? (was: Dot Syntax docs missing?)

2008-07-18 Thread Rick Mann
I realize after all this, it's not really the Dot Syntax I need. I need to know how a property name (starts with lower-case letter) is transliterated into the getter/setter names. On Jul 18, 2008, at 20:58:35, Rick Mann wrote: Where is the description of the dot syntax? The top of the

Re: Dot Syntax docs missing?

2008-07-18 Thread Jens Alfke
On 18 Jul '08, at 9:44 PM, Rick Mann wrote: I know how to use the dot syntax in the typical case. What I want is an authoritative reference on how property names change case to match accessor functions I define. It's probably described in the documentation for Key-Value Coding

Re: Dot Syntax docs missing?

2008-07-18 Thread Jerry Krinock
On 2008 Jul, 18, at 20:58, Rick Mann wrote: Where is the description of the dot syntax? The top of the Obj-C 2.0 docs (Properties section) refers you "Dot Syntax." It also refers to "structure elements", by which they mean a C struct. Remember, Objective-C is built on

Re: Dot Syntax docs missing?

2008-07-18 Thread Rick Mann
On Jul 18, 2008, at 21:37:59, Diop Mercer wrote: Rick, I think all you need to do is say: //set someobject.someproperty = foo; //get bar = someobject.someproperty; I know how to use the dot syntax in the typical case. What I want is an authoritative reference on how property names change

Re: Dot Syntax docs missing?

2008-07-18 Thread Glenn L. Austin
On Jul 18, 2008, at 9:08 PM, Rick Mann wrote: On Jul 18, 2008, at 21:05:33, Glenn L. Austin wrote: On Jul 18, 2008, at 8:58 PM, Rick Mann wrote: Where is the description of the dot syntax? The top of the Obj-C 2.0 docs (Properties section) refers you "Dot Syntax." A search of

Re: Dot Syntax docs missing?

2008-07-18 Thread Rick Mann
On Jul 18, 2008, at 21:05:33, Glenn L. Austin wrote: On Jul 18, 2008, at 8:58 PM, Rick Mann wrote: Where is the description of the dot syntax? The top of the Obj-C 2.0 docs (Properties section) refers you "Dot Syntax." A search of ADC turns up the first hit: Look for Graphviz

Dot Syntax docs missing?

2008-07-18 Thread Rick Mann
Where is the description of the dot syntax? The top of the Obj-C 2.0 docs (Properties section) refers you "Dot Syntax." A search of ADC turns up the first hit: The Objective-C 2.0 Programming Language: The Dot Syntax - Size: 24k ... The ... Syntax. Objective-C provides a ... ( . .

re: Dot syntax

2008-06-17 Thread Ben Trumbull
I've been playing with Core Data and the syntax I use to access a Core Data attribute. In Mac OS X 10.4 I used syntax like: [a valueForKeyPath @"b.selection.c"] where b is a NSObjectController bound to a Core Data entity with Cocoa Bindings and c is an attribute of that entity. In Mac OS X 10.

Dot syntax

2008-06-17 Thread John Dalbec
I've been playing with Core Data and the syntax I use to access a Core Data attribute. In Mac OS X 10.4 I used syntax like: [a valueForKeyPath @"b.selection.c"] where b is a NSObjectController bound to a Core Data entity with Cocoa Bindings and c is an attribute of that entity. In Mac OS X 1