On Jul 1, 2009, at 8:41 PM, Agha Khan wrote:

Am I am doing something wrong?

Yes.

I am new to Apple development and how can I get rid of this message.


NSArrays are immutable; NSMutableArrays are. Make your array mutable, and then you can add and remove objects from it. Note that it's not enough to just declare the pointer to be an NSMutableArray; you must also allocate an object of that class or else you'll get mutation exceptions.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to