NSBezierPath EXC_BAD_ACCESS issues.
NSBezierPath EXC_BAD_ACCESS issues.
- Subject: NSBezierPath EXC_BAD_ACCESS issues.
- From: Billy Flatman <email@hidden>
- Date: Wed, 3 Mar 2010 12:34:54 +0000
Hi all,
I have a shape class containing an
attribute:
NSBezierPath *path;
initialisation:
path = [[NSBezierPath alloc] init];
[self setBezierPath];
setBezierPath:
path = [NSBezierPath bezierPath];
then add the paths and close path.
paint:
[path setLineWidth: 1];
[path fill];
It all worked well when I had the setBezierPath method called from paint, but since only calling setBezierPath in an update method and during initialisation, I've started getting a exc_bad_access exception when path is called in the paint method.
Any help would be greatly appreciated.
Cheers,
Billy_______________________________________________
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