You just need to know basic C and follow the very simple rules and not needlessly complicate things.
- initWithObjects gives a perfectly good (and already retained) array--there's no need to put it into a temp variable and then try to copy it - if listOfMonthNames is nil, then you would need to alloc & init an array and assign to it--you can't call arrayByAddingObjectsFromArray on something that's not an array and expect it to work - what is listOfMonthNames2? <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/TasksM emoryManagementRules.html> -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice _______________________________________________ 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