Re: Stroking on the inside with NSBezierPath

2009-01-30 Thread Matthew Johnson
The default stroke seems to be one that assumes the path you make is the center of the stroke. How can I make the stroke be on one of the *side* of the path? Depending on how you look at it it could be to the right, left, outside or inside. Any way to modify that? Thanks,U Just set the

Re: Optimized image drawing (currently using CGImageCreate - CGContextDrawImage)

2008-12-09 Thread Matthew Johnson
As far as I remember, you can get something like 1000 512x512 image draw per sec on a mac pro (not a very good card, but not bad also). If you use OpenGL instead of CoreGraphics, this is more like 7000 1024x768 image per sec. Did you have QuartzGL turned on when you tested this? Matthew

Re: custom view binding to NSTreeController

2008-12-04 Thread Matthew Johnson
As far as I know it's the only way, all the examples I've ever seen use a similar method. Array iteration is pretty fast and I can only imagine it being slow for a very large data set. I've definitely never had performance issues with it, but I am not creating large trees. I also would

Re: custom view binding to NSTreeController

2008-12-04 Thread Matthew Johnson
On Dec 5, 2008, at 8:23 AM, Rob Keniger wrote: On 05/12/2008, at 1:29 AM, Matthew Johnson wrote: I agree it's a shame. There are plenty of examples for simpler binding scenarios, but none I have found for custom views binding to NSTreeController. I really appreciate your sample will do

custom view binding to NSTreeController

2008-12-03 Thread Matthew Johnson
I am creating a custom view which I would like to bind to NSTreeController. I have tried observing both [treeController arrangedObjects] and [[treeController arrangedObjects] childNodes]. Both seem to only notify that a change has occurred and do not provide any details about the change

subclassing CAAnimation

2008-06-26 Thread Matthew Johnson
I would like to subclass CAAnimation to implement an animation with custom rendering. I can't find any details about how animations work with the render tree to render each frame. There doesn't appear to be public API for this yet. This is an experimental project so I don't mind using