Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-06-2008, 08: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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 270
21 members and 249 guests
Alexman, AlexTheMighty, applezinga, arcturus, Bertrand21, Cathy, Chilibird, embedded, evana, Falcon80, Glnn, headkaze, iSdkDev, jhaynie, kalygraphix, mac514, pereorra, shuvo1879, smrtital, Son of a Beach, tlikyu
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,228
Threads: 39,008
Posts: 171,100
Top Poster: smasher (2,570)
Welcome to our newest member, SSL Matrix
Powered by vBadvanced CMPS v3.1.0

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