Re: Probably a silly question
This is also a shortcut (usually found in WOComponents) used to route around Java being less magically inclined. Thanks to KVC you can declare a public ivar like _person and use it from your components (or any API using KVC) like person. Later, when you decide you need accessors you can add them without changing any calling code. tb On Monday, December 19, 2011 at 6:11 AM, Gino Pacitti wrote: Thanks Markus... I thought that but was not sure... It also might have been (I don't recall where I read this) that those variables were overides from the parent class... Anyone verify that? GIno On 19 Dec 2011, at 11:07, Markus Ruggiero wrote: On 19.12.2011, at 11:51, Gino Pacitti wrote: Hi... In the Wonder examples there are variables with underscore... public NSData _data; public AjaxUploadProgress _uploadProgress; public AjaxProgress _progress; Any significance??? Hi Gino, as far as I know from the old days of WebObjects/Objective-C variables with _ were meant to be private vars (there was no public/ private then). Many folks coming from those days still use this naming convention. It is a visual clue to the human developer and has no technical significance. I haven't looked at those examples but I guess that is it. Weird anyway that the vars are public and visually marked private. ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com (mailto:Webobjects-dev@lists.apple.com)) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/tbritt%40phigment.org This email sent to tbr...@phigment.org (mailto:tbr...@phigment.org) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Probably a silly question
Hi... In the Wonder examples there are variables with underscore... public NSData _data; public AjaxUploadProgress _uploadProgress; public AjaxProgress _progress; Any significance??? Gino ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Probably a silly question
On 19.12.2011, at 11:51, Gino Pacitti wrote: Hi... In the Wonder examples there are variables with underscore... public NSData _data; public AjaxUploadProgress _uploadProgress; public AjaxProgress _progress; Any significance??? Hi Gino, as far as I know from the old days of WebObjects/Objective-C variables with _ were meant to be private vars (there was no public/private then). Many folks coming from those days still use this naming convention. It is a visual clue to the human developer and has no technical significance. I haven't looked at those examples but I guess that is it. Weird anyway that the vars are public and visually marked private. ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Probably a silly question
Thanks Markus... I thought that but was not sure... It also might have been (I don't recall where I read this) that those variables were overides from the parent class... Anyone verify that? GIno On 19 Dec 2011, at 11:07, Markus Ruggiero wrote: On 19.12.2011, at 11:51, Gino Pacitti wrote: Hi... In the Wonder examples there are variables with underscore... public NSData _data; public AjaxUploadProgress _uploadProgress; public AjaxProgress _progress; Any significance??? Hi Gino, as far as I know from the old days of WebObjects/Objective-C variables with _ were meant to be private vars (there was no public/ private then). Many folks coming from those days still use this naming convention. It is a visual clue to the human developer and has no technical significance. I haven't looked at those examples but I guess that is it. Weird anyway that the vars are public and visually marked private. ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com