QCRenderer.... how do you do that?

2010-04-10 Thread Eric Smith
I'm trying to use a Quartz Composer filter in a cocoa app. I've published inputs and outputs: one image input, one image output. I can successfully set the input image, but when I try to get the output image, I get 0x0 no error messages, just a null pointer. Here's my code: QCComposition

Re: QCRenderer.... how do you do that?: solved

2010-04-11 Thread Eric Smith
All, I had tried to create this attached to an OpenGLContext, but apparently didn't do it right. I found the answer at: http://developer.casgrain.com/?p=4 Problem solved. Eric On Apr 10, 2010, at 6:56 PM, Eric Smith wrote: > I'm trying to use a Quartz Composer filter in a coc

drag and drop to the finder

2011-12-02 Thread Eric Smith
All, I want to declare a drag type that the finder will recognize, but that can be used for other destinations as well, like mail. Right now, my users have to do option+drag for dragging files to the finder, in which case I call [NSView dragPromisedFilesOfType:..], and if they want to drag to

controlling a camcorder

2012-01-18 Thread Eric Smith
All, I'm trying to grab video from a Dazzle Hollywood or an ADVC-55. Over both of these interfaces I can grab video by opening iMovie, selecting the interface and pressing "play". However, when I try to grab video with the QTCaptureDevice interface, I just get a blank screen (iSight and other

getting a nsurl file size

2012-01-28 Thread Eric Smith
All, I'm trying to determine the size of a file on a server. If I send the following message to an NSURL named "path", I get: [path getResourceValue:&value forKey:@"content-length" error:&error]; value comes back nil. If I send: value = [path propertyForKey:@"content-length"]; which is depr

Re: getting a nsurl file size

2012-01-29 Thread Eric Smith
The getResource... method returns YES whether I pass @"content-length" or NSURLFileSize (I tried that one first). Eric On Jan 28, 2012, at 10:21 PM, Ken Thomases wrote: > On Jan 28, 2012, at 11:53 PM, Eric Smith wrote: > >> I'm trying to determine the size of a f

Re: getting a nsurl file size

2012-01-29 Thread Eric Smith
Charles, Works like a charm. Thank you! Eric On Jan 28, 2012, at 11:28 PM, Charles Srstka wrote: > On Jan 29, 2012, at 12:21 AM, Ken Thomases wrote: > >> * The keys that are valid for that method are those listed in the NSURL >> documentation. They may bear no relation to HTTP response hea

NSAffineTransform

2010-01-09 Thread Eric Smith
I have the following code: CIFilter* vertFlipFilter = [CIFilter filterWithName: @"CIAffineTransform"]; NSAffineTransform* vertFlipTransform = [NSAffineTransform transform]; CIImage* theImage = [[CIImage alloc] initWithCGImage:imageOne]; [vertFlipTransform translateXBy:100. yBy:1000]; [vertFlipFi

problems with distributed objects

2010-02-14 Thread Eric Smith
OK... I've got what must be a trivial problem. I'm running two applications on the same computer (intel iMac). I'm just cutting and pasting code from the XCode help pages, describing how to vend and obtain a distributed object. Code is below: Application #1: myConduit = [[ServerCond

Re: problems with distributed objects

2010-02-14 Thread Eric Smith
OK... never mind, everyone. When I saw my own post, I recognized the "autorelease" as the problem. Eric On Feb 14, 2010, at 7:48 PM, Eric Smith wrote: > OK... I've got what must be a trivial problem. I'm running two applications > on the same computer (intel iM

problem with distributed objects

2010-02-15 Thread Eric Smith
OK, I'm back. I have some distributed object code that used to work just great (back in the Tiger days, I think), and now does not. I see the error: "[NSPortCoder sendBeforeTime:sendReplyPort:] timed out", when I try to get the rootProxy from a connection. I see this mentioned here and there

popup menus and toolbar buttons

2013-06-15 Thread Eric Smith
Anyone know how to attach a popup menu to a toolbar button, as with the 'run' button in Xcode? I want to give users a choice of action via a popup menu if they hold down one of my toobar buttons. Thanks in advance, Eric ___ Cocoa-dev mailing list (Co

dragging images to the finder

2009-01-11 Thread Eric Smith
All, I'm trying to get drag-and-drop to work, using the finder as a destination. I can drag my files into mail using NSTIFFPboardType. My draggingSourceOperationMaskForLocal returns NSDragOperationEvery. But, when I drag my file onto a finder window, I get no icon at all... no little g

histogram equalization

2008-02-21 Thread Eric Smith
Anyone doing histogram equalization with CIImage? This was supported under vImage, but there doesn't seem to be a corresponding CIFilter. Thanks, Eric ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Authorization Services

2014-04-26 Thread Eric Smith
All, New to Authorization, and it's got me a little turned around. Can someone post a code snippet that shows how to us authorization services to run 'sudo chown' from within Cocoa? Thanks in advance! Eric ___ Cocoa-dev mailing list (Cocoa-dev@list