The iPhone itself does support synthesized instance variables, if you're compiling for the device. If you're compiling for the simulator, you must have the ivars in place because the simulator uses the old runtime underneath.

So to answer your questions succinctly,
- synthesized ivars are supported on the iPhone device, but not the iPhone simulator
- SenTestKit has nothing to do with it
- Discussion of pre-release software should happen in the approved channels (but the runtime won't have changed)

Dave

On Mar 24, 2009, at 3:36 PM, Eric Hermanson wrote:

I tried using Obj-C properties to synthesize not only the accessor methods, but also the instance variable. I ended up with an error saying something like "...must explicitly name an ivar...".

I was under the impression the iPhone ran the modern (64-bit) Objective-C runtime. I'm using xCode 3.x and iPhone SDK 2.2. Are synthesized instance variables not supported, or do I need to change some xCode/project configuration settings to activate this support (I'd really like to use it)?

Does the fact that I'm linking to the Sen Test Kit Framework, or running on a relatively old Intel MacBook Pro cause this problem?

Finally, if iPhone SDK does not support synthesized instance variables, does iPhone SDK 3.0 beta support them?

Thank You,
Eric
_______________________________________________

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