Re: Is it possible to create Wonder-style getters in Eclipse?
Re: Is it possible to create Wonder-style getters in Eclipse?
- Subject: Re: Is it possible to create Wonder-style getters in Eclipse?
- From: Jake MacMullin <email@hidden>
- Date: Tue, 20 May 2008 08:24:07 +1000
Also, according to the documentation for key-value-coding, the
getKey() form is the first one the framework looks for, so if you use
it you can be sure your method is the one being used (and not a
similarly named method / variable inherited from a parent class) and
it might be ever-so-slightly faster..
http://beta.devworld.apple.com/documentation/MacOSXServer/Reference/WO54_Reference/com/webobjects/foundation/NSKeyValueCoding.html#valueForKey(java.lang.String)
Cheers,
Jake
On 20/05/2008, at 7:30 AM, Lachlan Deck wrote:
Hi Helmut,
On 20/05/2008, at 7:17 AM, Helmut Schottmüller wrote:
does anyone know a trick how to convince Eclipse to create the
Wonder-style getters (e.g. attribute() instead of getAttribute())
with "Source / Generate Getters and Setters"?
These are NS-style getters; not wonder.
It is possible to set the comments and the body in the preferences
but not the function call itself... :-(
Since I am making extensive use of the Command + Click magic in
the .wod files to autocreate the bindings I don't like the get-
getters anymore ;-)
No, doesn't seem to be possible. I just made the decision to go with
the tools. The wod binding still uses the NS-style bindings and
allows you to create/click-through-to the get-style.
Conforming to the bean-standard, however, opens up other
possibilities for your code if that's any consolation.
with regards,
--
Lachlan Deck _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden