NSMutableArray

293 views
Skip to first unread message

biker

unread,
Nov 13, 2009, 12:26:29 AM11/13/09
to iPhone Application Development Auditors
Hello All,

I am new to Objective-c.
I am not able to find any method which can give the length of
NSMutableArray and to access the object at any location.
Can we use NSArray's count and objectAtIndex methods for these
purposes?

Thanks

ltgbau

unread,
Nov 13, 2009, 2:23:08 AM11/13/09
to iPhone Application Development Auditors
yeh, nsmutablearray is inherited from nsarray

Sandeep Kukreti

unread,
Nov 13, 2009, 4:27:06 AM11/13/09
to iphone-appd...@googlegroups.com
Hi sachin,

you can find the length of NSMutableArray such a way:

int len=[mymutablearray count];




--

You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appd...@googlegroups.com.
To unsubscribe from this group, send email to iphone-appdev-aud...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=.





--
Thanks & Regards,
Sandeep Kukreti

HAVE A NICE DAY...

Mike Carter

unread,
Nov 13, 2009, 10:41:56 AM11/13/09
to iphone-appd...@googlegroups.com
Yes you can. Since NSMutableArray inherits from NSArray, you get all
of NSArray's methods for free.

Sent from my iPhone

chao liu

unread,
Nov 13, 2009, 9:01:01 PM11/13/09
to iphone-appd...@googlegroups.com
当然可以,NSMutableArray继承于NSArray,你可以使用NSArray的方法

2009/11/13 Mike Carter <avid...@me.com>
Reply all
Reply to author
Forward
0 new messages