how to get variable stored in another object using objective c

Posted by mac on Stack Overflow See other posts from Stack Overflow or by mac
Published on 2010-06-09T07:38:47Z Indexed on 2010/06/09 7:42 UTC
Read the original article Hit count: 148

Filed under:
|
|
|

Hi All

SaveNotes *saveNotes = [[SaveNotes alloc]initWithTitleString:title descrString:descr]; [titleDescrObjects addObject:saveNotes]; [saveNotes release];

from the above code i have saved title,descr to a class SaveNotes , and then i have stored that object in my NSMutableArray -> titleDescrObjects, Its working fine,

i need to get particular objects "descr" alone,

how to get the descr from objectAtIndex:i

i am trying

for (int i=0; i<[titleDescrObjects count]; i++) {
NSLog(@"\n ((%@))\n",[titleDescrObjects objectAtIndex:i].descr); }

Thanks in advance,

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk