• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #1032 - 16 msgs
  • Next by Date: Re: 2 classes
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #1032 - 16 msgs
  • Next by thread: Re: NSBezierPath
  • Index(es):
    • Date
    • Thread