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-05-2008, 06:26 AM   #6 (permalink)
NewiPhoneDeveloper
Registered Member
 
Join Date: Jul 2008
Posts: 459
Default

Hi,

I tried what you suggested and it really makes sense to me, but still "TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION".

Here is what I did:

Code:
//this is MainViewController.m (NSMutable array is already declared in .h)

myNSMutableArray = [[[NSMutableArray alloc] initWithObjects:@"object1.png", @"object2.png", @"object3.png"]retain];

- (void)ReplaceOneOfMyObjects {
    [myNSMutableArray replaceObjectAtIndex:0 withObject:@"object4.png"];
}

[self ReplaceOneOfMyObjects];
NewiPhoneDeveloper is offline   Reply With Quote
 

» Advertisements
» Online Users: 756
19 members and 737 guests
AppAnnex, carpi, dfvdan, Domele, Gurpartap Singh, her-ur, juggler, melmoup, nidie, Pavel Volobuev, PetarPM, phackdat, sneaky, Stokestack, Svaths, Tambourin, V_SC&, Xaron, zatamata
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,836
Threads: 89,209
Posts: 380,642
Top Poster: BrianSlick (7,129)
Welcome to our newest member, abbylowin
Powered by vBadvanced CMPS v3.1.0

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