Cocoa file loader

akaioni's picture

I am trying to find a nice way to make a file loader in Interface builder, teporarly I'm just using QCComposition parameter view connected to QCView or using QCPatchContoller connected to text field. It works, I have to mark the text field,drag the object onto the text file and press enter, which take time. Preferably I would use NSBrowse to look for the path or anything else that would open a folder contents view to look for a string. I could find any tutorial on connecting NSBrowse to QCPatchContoller, is the a way? I'm attaching how it works/looks now.

PreviewAttachmentSize
Screen shot 2010-06-07 at 09.27.11.png
Screen shot 2010-06-07 at 09.27.11.png22.52 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

dwskau's picture
Re: Cocoa file loader

I am also interested in this.

akaioni's picture
Re: Cocoa file loader

I tried now with image well, thinking that I normally connect color well to my QCController, but apparently it outputs nsimage and I need a string, all image/movie importers use strings in quartz so that's why. NSBrowse outputs a string but when I put a QCView in application it is not running properly, well, it isn't running at all.

dust's picture
Re: Cocoa file loader

there is all kinds of ways to load a qc comp into an application. contextual menus, drop down menus, load buttons, etc... you should look at the quartz composer developer application examples to get an idea of various ways to do this. they are either located on apples site under sample code quartz or in your /developer/examples/quartzcomposer/applications folder.

here is the quartz performer example it will show you how to drag and drop a quartz file into an app. you can make drop zones or use an image well etc... another example of drag and drop would be the lightbox example. it for images but shows you how to drag and drop them move them rotate and scale them. the principles apply to a qc comp as a qc comp inherits from a CALayer so you can basically do all the things the light box does with qc comps.

here is the performer example to get you started.

PreviewAttachmentSize
Performer.zip193.74 KB