Re: confused by signal error (newbie)
Re: confused by signal error (newbie)
- Subject: Re: confused by signal error (newbie)
- From: Jeremy Dronfield <email@hidden>
- Date: Mon, 28 Feb 2005 10:24:07 +0000
On 28 Feb 2005, at 8:27 am, Daniel Child wrote:
[pathAngles addObject: angObject]; // PROBLEM HERE
At this point, pathAngles is an uninitialized pointer. You're trying to
-addObject: to an array that doesn't exist. You need to initialize
pathAngles as an empty array before you can add objects to it. Look at
+[NSMutableArray arrayWithCapcity:], -[NSMutableArray
initWithCapacity:], and inherited methods -[NSObject init] and
+[NSArray array]. For example:
NSMutableArray *pathAngles = [NSMutableArray array];
or
NSMutableArray *pathAngles = [[NSMutableArray alloc] init]; // Don't
forget to release when done with it
Regards,
-Jeremy
===================================
SkoobySoft, home of viJournal and Skooby Renamer
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden