Fwd: Feh. Obj-C syntax question
Fwd: Feh. Obj-C syntax question
- Subject: Fwd: Feh. Obj-C syntax question
- From: Joachim Deelen <email@hidden>
- Date: Thu, 8 Nov 2007 01:35:45 +0100
Anfang der weitergeleiteten E-Mail: Datum: 8. November 2007 01:30:30 MEZ Betreff: Re: Feh. Obj-C syntax question
You can declare your own setter and getter, as attributes to the property.
@property(getter=myGetter,setter=mySetter) float var;
But then you have to write the corresponding getter/setter on your own....As far as I know...
Joachim
Am 08.11.2007 um 01:23 schrieb Rick Mann:
On Nov 7, 2007, at 4:19 PM, Joachim Deelen wrote:
This is not the correct Syntax for Properties...
Yes, thank you. That was just pointed out to me.
So, here's the new question:
I really like to prefix my member variables with a small "m". As you can imagine (and as I expected), the auto-get/set generation doesn't deal with this well. It created setMFoo(), rather than dropping the "m" (I didn't expect it to do anything else).
I don't suppose, by some miracle, there's a way to get it to handle that better, is there?
--
Rick
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden