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
  • 39,719
  • 45
  • 189
  • 235

2 Answers2

1

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

Community
  • 1
  • 1
fearmint
  • 5,276
  • 2
  • 33
  • 45
0

You can use a readonly synthesized property.

DreamOfMirrors
  • 2,147
  • 1
  • 21
  • 34