Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-06-2008, 09:28 AM   #11 (permalink)
danzaph
New Member
 
Join Date: Jul 2008
Posts: 91
Default

1) You need a @synthesize call in the implementation.
Code:
@synthesize myNSMutableArray;
2) use "self." to use the setter/getters produced by the parameters.
Code:
	self.myNSMutableArray = [[NSMutableArray alloc] initWithObjects:@"object1.png", @"object2.png", @"object3.png", nil];
	[self.myNSMutableArray replaceObjectAtIndex:0 withObject: @"newObject.png"];
Without the "self." you are changing the iVar directly.
danzaph is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,739
Threads: 89,195
Posts: 380,542
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Realtor Email List
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:25 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.