• 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
Re: NSView out of memory problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView out of memory problem


  • Subject: Re: NSView out of memory problem
  • From: Matthew Whillock <email@hidden>
  • Date: Wed, 2 Apr 2008 08:45:38 +0100

Hi Graham,

Yes, you're right. Moments after I sent my email I found the right tree to bark up.

Cheers,
Matt

On 2 Apr 2008, at 00:05, Graham Cox wrote:

As I said, it says nothing about how it's implemented. Chances are, it will avoid creation of an unnecessary NSBezierPath object, but relying on that being the case is folly.


On 2 Apr 2008, at 2:23 am, Matthew Whillock wrote:
The class reference has this to say about it:

Strokes a line between two points using the current stroke color and the default drawing attributes.
+ (void)strokeLineFromPoint:(NSPoint)point1 toPoint:(NSPoint)point2



So it will just draw a line.

Cheers,
Matt


Are you sure? This could be just a convenient interface for creating a
bezier object with the points passed, stroking it and releasing or
autoreleasing it. The docs say nothing about how it's implemented.


-- Matthew Whillock email@hidden

Mullard Space Science Laboratory
Holmbury St Mary
Surrey RH5 6NT
UK




_______________________________________________

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:
    • to-Some Relationship (Core Data/IB questions)
      • From: Ian Jackson <email@hidden>
References: 
 >Re: NSView out of memory problem (From: Matthew Whillock <email@hidden>)
 >Re: NSView out of memory problem (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: [NSPipe pipe] returning nil (running out of filehandles?)
  • Next by Date: Modifying the clip view before scrolling.
  • Previous by thread: Re: NSView out of memory problem
  • Next by thread: to-Some Relationship (Core Data/IB questions)
  • Index(es):
    • Date
    • Thread