NSBezierPath
NSBezierPath
- Subject: NSBezierPath
- From: "Smith, Bradley" <email@hidden>
- Date: Thu, 1 Aug 2002 11:51:17 +0100
Hi everyone,
Am I right in thinking the following should work:-
NSBezierPath *thePath = [NSBezierPath bezierPath];
// do a movePoint and a bunch of addPoint calls
// Add thePath to an NSMutableArray stored elsewhere by calling addObject
// Later on, in my drawRect function, draw each bezier by callign stroke on
every item in my array
??
Well, that caused a crash on the first attempt to access the first element
of the array (an NSBezierPath object).
What I'm doing now is storing the points in an array and constructing the
beziers in my drawRect function. This works but seems liek a hack to me.
Any help appreciated.
Brad.
P.S. It looks liek my BezierPaths are being deleted but I'm not calling
release on them anywhere. If anything I ought to be leaking memory because I
believe addObject would have doen a retain on the bezier as it got added
wouldn't it?
Cheers
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.