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

NSBezierPath setLineDash:count:phase:


  • Subject: NSBezierPath setLineDash:count:phase:
  • From: David Elliott <email@hidden>
  • Date: Fri, 1 Aug 2003 17:25:13 -0400

Hi,

Does NSBezierPath make a copy of the (const float *) pattern parameter or should I write my code such that the array stays around for as long as the NSBezierPath does?

Defensive programming tells me I probably should keep it around if there's even a question, but I'd rather not waste cycles (mine, who cares about the computer :-) if someone can say for sure that it's supposed to make a copy. Furthermore, what happens if the NSBezierPath itself is copied?

The Apple documentation for that method does not say one way or another which should be corrected. I strongly suspect it is designed to take a pointer to a statically initialized array or at least one that's guaranteed good for the life of the object.

-Dave
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSBezierPath setLineDash:count:phase:
      • From: Shawn Erickson <email@hidden>
    • Re: NSBezierPath setLineDash:count:phase:
      • From: Aki Inoue <email@hidden>
  • Prev by Date: threads and buttons - basic question
  • Next by Date: Re: ProgressIndicator Always Hidden If...
  • Previous by thread: Re: threads and buttons - basic question
  • Next by thread: Re: NSBezierPath setLineDash:count:phase:
  • Index(es):
    • Date
    • Thread