| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Why can't that autorelease pool be part of the framework, especially since that behaviour (duplicating the path) isn't documented? Is it not autoreleased per default for performance reasons?It *is* autoreleased, that is why adding your own local NSAutoRelease pool helps. Although I do agree that it is odd that the entire path would be duplicated just to find out if it contains a given point. I would consider that a bug, and file it as such, since I can't see any reason that it couldn't be re-implemented without the copy, or any loss of speed.
It's quite possible that NSBezierPath calls "bezierPathByFlatteningPath" in that code and solves each generated line segment for the point. Flattening will eat lots of memory for complex paths.
| References: | |
| >Re: Does cocoa just leak? (From: "Clark S. Cox III" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.