Re: Animate a CGPath

2008-09-12 Thread David Duncan
a path down into its components and do whatever you please. That said, it is probably cleaner to simply draw the individual components yourself rather than using a CGPathRef, as all of the path operations have equivalent functionality that can be done directly on the context. -- David Duncan

Re: NSDate autorelease problem

2008-09-03 Thread David Duncan
(presuming your talking about Core Audio). Any reason you can't use that? -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Font Color In CTLineDraw?

2008-09-02 Thread David Duncan
a current NSGraphicsContext. If you don't have one, then it will take the color form the CGContextRef instead. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread David Duncan
the private function 'CGSAddWindowFilter'. Please do not use private API, they are subject to change in ways that can break your application on any OS update. File a feature enhancement request describing what you wish to do instead. -- David Duncan Apple DTS Animation and Printing

Re: Tiger Compatible OpenGL Screenshot Code

2008-08-20 Thread David Duncan
release, so it wasn't stated as capable of being able to run on 10.4. I would try linking against the 10.4 SDK and seeing what you get. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: !foo vs foo == nil

2008-08-20 Thread David Duncan
they are equivalent :). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: Calling an object from a C function

2008-08-19 Thread David Duncan
. Easiest way to do this is to name the source file with a .m extension. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Calling an object from a C function

2008-08-19 Thread David Duncan
bar) { [bar foobaz]; } -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: CATiledLayer documentation

2008-08-18 Thread David Duncan
). Of course, I would have hoped for an example with multiple image source containing tiles. Noted. :). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Delayed termination to allow release

2008-08-11 Thread David Duncan
to occur in -applicationShouldTerminate: without relying on object lifetimes to do this (if you ever write a GC enabled application you will find you have the same issues in that you cannot message an object in -finalize reliably). -- David Duncan Apple DTS Animation and Printing

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-06 Thread David Duncan
, Aug 5, 2008 at 2:32 AM, Nicolas Zinovieff [EMAIL PROTECTED] wrote: David, the images are GIFs, roughly 40KB each, 200x100 (or 100x200). Nothing fancy. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-04 Thread David Duncan
, CGImageSourceCreateWithURL fails with error -11 How is CGImageSourceCreateWithURL failing with any error when its return value is a CGImageSourceRef and not an OSStatus? -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread David Duncan
a learning project, the same thing can be accomplished with the open command line tool :). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread David Duncan
to be solved in general) but it is capable of relaunching a process when necessary, and it will also auto-throttle the relaunch if the process is being troublesome (i.e. dying over and over and over in a short time). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-04 Thread David Duncan
On Aug 4, 2008, at 3:58 PM, Nicolas Zinovieff wrote: On 04 Aug 2008, at 18:54, David Duncan wrote: How is CGImageSourceCreateWithURL failing with any error when its return value is a CGImageSourceRef and not an OSStatus? Well, it returns NULL, and prints in the console that it failed

Re: CALayer and CGContexts

2008-07-30 Thread David Duncan
a CGImageRef via a CIContext createCGImage:inRect: call - is that recommended? Or is there a simpler way? If you have a bitmap context, you can just call CGBitmapContextCopyImage() to get an image you can use from it. Can you explain your situation a bit more? -- David Duncan Apple DTS Animation

Re: Storing values in dictionary with their address as the key

2008-07-28 Thread David Duncan
to always be the same (at least in my case). If you use %p it will do the right thing with 32-bit vs 64-bit pointers. However as others have said, you should pass myObject not myObject if you really want to use NSString keys (instead of NSValue keys). -- David Duncan Apple DTS Animation

Re: Retrieving the current -[NSShadow set]

2008-07-25 Thread David Duncan
. But there is no method to retrieve these parameters from either the NSGraphicsContext or underlying CGContextRef. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSTask

2008-07-22 Thread David Duncan
of NSThread. Or in other words, prior to 10.5 there isn't anything you can really do with an NSThread instance that would warrant needing access to the actual instance from outside of the thread itself. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: Newbie CALayer Questions

2008-07-21 Thread David Duncan
)drawInContext:(CGContextRef)ctx Also keep in mind that if you are using a delegate, you implement: -(void)drawLayer:(CALayer*)layer inContext:(CGContextRef)ctx -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list

Re: QCCompositionLayer for Manipulating other CALayers

2008-07-18 Thread David Duncan
can then apply them to the layer. I don't think this will work very well honestly, and I think it would likely be easier for you to replicate this functionality in code (both in terms of the amount of code to support this and the effort required to make it work correctly). -- David Duncan

Re: any other type of value for the fromValue property of CAAnimation?

2008-07-11 Thread David Duncan
bridged, therefore it is an error to assign an NSColor where a CGColorRef is expected (or vise versa). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: dataWithPDFInsideRect: ignores alpha of a shading?

2008-07-10 Thread David Duncan
the shading with the target alpha (and making the shading itself opaque). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread David Duncan
. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread David Duncan
(or lower) resolution content is available. It caches this drawing as well, so you won't get called to redraw just because of a resize of content at that level is already available. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread David Duncan
On Jul 9, 2008, at 2:08 PM, Rick Mann wrote: On Jul 9, 2008, at 12:59:33, David Duncan wrote: Given what it sounds like your content is, I might consider putting the whole canvas on a single or small set of tiled layers (they can be unbounded in size). Oh. I had thought making each

Re: Using deprecated methods

2008-07-05 Thread David Duncan
, so you'll want to avoid calling it on 10.5. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Layer Backed Views and CoreAnimation neither animate nor stay in place

2008-07-05 Thread David Duncan
: | above:] to put a layer in a specific ordering in the layer tree. This is generally cheaper than changing the zPosition, as a change in zPosition forces the sublayer list to be depth sorted. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: How to implement Quartz GL ?

2008-07-04 Thread David Duncan
: with the value NSWindowBackingLocationVideoMemory. See http://dts/pages/doc-preview.php?apple_ref=//apple_ref/occ/instm/NSWindow/setPreferredBackingLocation:editid=3310 for more info. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: How to implement Quartz GL ?

2008-07-04 Thread David Duncan
On Jul 4, 2008, at 6:28 PM, David Duncan wrote: For all windows app wide (probably your situation) add the QuartzGLEnable key to your Info.plist (with boolean value true). For specific windows, call setPreferredBackingLocation: with the value NSWindowBackingLocationVideoMemory. See for more

Re: Control USB Power

2008-06-13 Thread David Duncan
the USB socket. That said, I have no idea if what you are asking is possible... -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: CALayer scale transform

2008-06-11 Thread David Duncan
with maximum texture sizes on the video card your running on. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: applications list on Multi monitor

2008-06-09 Thread David Duncan
windows on the screen (see the Son Of Grab sample code) and then use CGGetDisplaysWithRect() to determine what displays each window is on. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSString vs NSPathStore2

2008-05-22 Thread David Duncan
be needlessly concerning yourself with an implementation detail :) -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
an implementation detail. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
. There are other controls you can add (or remove) as well, search the documentation for NSPrintPanelOptions (used with NSPrintPanel's -setOptions: method). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
to invoke that dialog as this is the standard Mac OS X behavior and what users will expect. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Stuttering Multiple QTMovieLayers in Single Window

2008-04-30 Thread David Duncan
context and the associated machinery for getting it drawn correctly). That the QTMovieLayer is causing you problems like this is a bug that you should file. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list

Re: Weird Problem With CGImage

2008-04-25 Thread David Duncan
to the CGImageCreateWithImageInRect() call, but I can't imagine why. CGDataProviderCopyData() seems to work perfectly with an original image in my limited testing, so please file a bug (and let me know what the bug number is). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: Weird Problem With CGImage

2008-04-25 Thread David Duncan
, if the * underlying data is too large to fit in memory). */ What is the expected output format of the data it returns ? The output image data is the same format as the associated CGImageRef. You can use the CGImageGet*() functions to determine the exact format of the data returned. -- David Duncan

Re: QTMovie grabing while playback

2008-04-24 Thread David Duncan
to do the layering, which of course will result in text that does not use sub-pixel antialiasing (which I presume is why you said not to use a CALayer). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list

Re: Problems with [NSArray count]

2008-04-22 Thread David Duncan
out, and I've tried various other types of variable to no avail. Any thoughts? Am I missing something blindingly obvious here? Are you getting an exception? perhaps myArray isn't really an NSArray at the time that you are sending it the -count message? -- David Duncan Apple DTS Animation

Re: Problems with [NSArray count]

2008-04-22 Thread David Duncan
by - componentsSeparatedByString: doesn't belong to you unless you retain it. You are likely getting your bad access because the autorelease pool is being drained in between your call to -displayData and -count (and -displayData: probably should be named -setDisplayData: instead). -- David Duncan

Re: thread count problem

2008-04-21 Thread David Duncan
of your application to perform certain activities and this is generally beyond your control. This should typically be completely transparent to you. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev

Re: drawRect: called twice for NSView subclass.

2008-04-20 Thread David Duncan
the coordinate system to draw into. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev

Re: Core Animation/Layers and Borderless Windows

2008-04-17 Thread David Duncan
either... -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: NSCompositeSourceOver equivalent in Quartz 2D?

2008-04-14 Thread David Duncan
is the default blend mode in a CGContext). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Basic Core Animation question

2008-04-14 Thread David Duncan
that using CGPath brings up. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: EXC_BAD_ACCESS when calling CGContextDrawLayerInRect

2008-04-14 Thread David Duncan
drawn yet, so there is no context. I suspect that your getting something you very much do not expect. In general if you want to use layers with views, you should create the layer on the first -drawRect: call rather than trying to have them around from -init forward. -- David Duncan Apple DTS

Re: Efficient object wrappers and GC

2008-04-11 Thread David Duncan
will *never* see these messages. See http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcDesignPatterns.html -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev

Re: Replacement for GetApplicationEventTarget?

2008-04-10 Thread David Duncan
possible replacements. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev

Re: ImageIO key properties

2008-04-07 Thread David Duncan
properly, standard weak-linking policies should apply. See the Frameworks Programming Guide on Frameworks and Weak Linking at http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: ImageIO key properties

2008-04-07 Thread David Duncan
but there is no availability macro attached to it. You should file a bug. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: 1 pixel bordered CALayer renders improperly

2008-04-03 Thread David Duncan
. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: -[CALayer setContents: cvPixelBufferRef ] ?

2008-04-03 Thread David Duncan
On Apr 3, 2008, at 1:00 PM, Jonathan del Strother wrote: I'm using the QTCapture api to record from a camera, while displaying a live preview (ideally with 0 lag) in Core Animation. The QTCaptureLayer doesn't do what you want? -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: CGFloat in 10.4

2008-03-18 Thread David Duncan
for 32- bit anyway). If you can use the 10.5 SDK, then you will find that CGFloat is defined, and you can use it compatibly when running on 10.4 or 10.5. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing

Re: CGFloat in 10.4

2008-03-18 Thread David Duncan
SDK: const float * c = [myColor components]; If your targeting the 10.5 SDK: const CGFLoat * c = [myColor components]; Deployment target doesn't matter here. Just which SDK your targeting. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED

Re: QCView openGLContext

2008-03-14 Thread David Duncan
. Adding one should prevent the garbage. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Deferring a selector until later, but before painting

2008-03-06 Thread David Duncan
approach of NSDisableScreenUpdates()/NSEnableScreenUpdates(), although this is usually used when you want multiple windows to appear without a flash... -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa

<    5   6   7   8   9   10