• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: Feh. Obj-C syntax question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

Von: Joachim Deelen <email@hidden>
Datum: 8. November 2007 01:30:30 MEZ
An: Rick Mann <email@hidden>
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

  • Prev by Date: Re: Feh. Obj-C syntax question
  • Next by Date: Re: Feh. Obj-C syntax question
  • Previous by thread: Re: Feh. Obj-C syntax question
  • Next by thread: Debugger refuses to switch threads
  • Index(es):
    • Date
    • Thread