1

Possible Duplicate:
Objective-C property that is readonly publicly, but has a private setter

Is there a way to make a synthesized property this way?

I really want to keep using the setter internally because of the retain/release it gives us, but i don't want this setter exposed to the world.

Thanks!

Community
  • 1
  • 1
Chris
  • 38,487
  • 43
  • 186
  • 230

2 Answers2

1

See this question: Objective-C property that is readonly publicly, but has a private setter

Community
  • 1
  • 1
JoePasq
  • 5,286
  • 2
  • 32
  • 45
0

You can use a readonly synthesized property.

DreamOfMirrors
  • 2,127
  • 1
  • 21
  • 34