Re: NSView out of memory problem
Re: NSView out of memory problem
- Subject: Re: NSView out of memory problem
- From: Andre Schnoor <email@hidden>
- Date: Tue, 1 Apr 2008 17:27:55 +0200
p1 = [NSBezierPath bezierPath] ;
[p1 moveToPoint: linebottom] ;
[p1 lineToPoint: linetop] ; [p1 stroke] ;
You could keep a permanent bezier path at a convenient location (e.g.
your view) and empty it instead of releasing it. This worked fine for
my app:
[localPath removeAllPoints];
[localPath moveToPoint: linebottom];
[localPath lineToPoint: linetop];
[localPath stroke];
This is btw. even slightly faster than allocating a new one.
Andre
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden