I cannot figure out why this does not work:
Phase *thisPhase = [phases objectAtIndex:i];
float testmode = [thisPhase mode];
float testmode2 = [[phases objectAtIndex:i] mode];
Following along with the code execution in the debugger, testmode gets
the correct value, but testmode2 gets an erroneous value. Note that
phases is an NSMutableArray of Phase* and mode is a trivial accessor
for a float stored inside Phase:
- (float) mode {return mode;}
I'm running XCode 3.1.2 in OSX 10.5.8.
-Dave
============================
Dave Hirsch
Associate Professor
Department of Geology
Western Washington University
persistent email: [email protected]
http://www.davehirsch.com
voice: (360) 389-3583
aim: [email protected]
vCard: http://almandine.geol.wwu.edu/~dave/personal/DaveHirsch.vcf
============================
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]