• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSBezierPath EXC_BAD_ACCESS issues.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSBezierPath EXC_BAD_ACCESS issues.
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Trying to achieve aperture PopUp buttons
  • Next by Date: Re: NSBezierPath EXC_BAD_ACCESS issues.
  • Previous by thread: How to get the handler of an NSException?
  • Next by thread: Re: NSBezierPath EXC_BAD_ACCESS issues.
  • Index(es):
    • Date
    • Thread