On Dec 24, 2009, at 3:26 AM, Brian Bruinewoud <br...@darknova.com> wrote:

Is there some way to turn on a warning saying 'you are directly accessing an ivar where a (non-trivial) getter/setter exists'?

I'm assuming you're targeting iPhone OS.

If you can deal with not running your code in the simulator, switching to synthesized ivars where possible might avoid this situation in most cases, since you would either need self. or self-> to access the property/ivar. Otherwise, give your ivars a prefix (underscore is verboten according to Apple, since they use it in the frameworks).

Oh, and if not being able to use the new runtime (and therefore synthesized ivars) in the simulator bothers you, file a bug. Same with the lack of namespacing leading to rules like "thou shalt not prefix identifiers with underscores." If enough of us complain about something, Apple might take our opinions into consideration.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to