Path From Open Panel Plugin

yanomano's picture

Here is a little QCplugin that open an Open Panel and return one or multiple paths for the selected file(s) or directory. There is a menu to set the type of selection allowed : Single file, multiple Files, Directory.

for better control, plug a Pulse patch to the Open Panel boolean input...

Thanks to Chris and vade for the advices.

Source code and Demo are included. As sometimes i don't really understand all i'am doing, ideally one ObjectiveC guru could take a peek to see if all is fine :)

PreviewAttachmentSize
Path From OpenPanel.zip39.04 KB

Comment viewing options

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

yanomano's picture
Re: Path From Open Panel Plugin

Seems there is a little issue with the PathFromOpenPanel Demo.qtz Here is a fixed one :

PreviewAttachmentSize
PathFromOpenPanel Demo.qtz4.44 KB

franz's picture
Re: Path From Open Panel Plugin

kewl ! I'm happy you're into plugins....

cybero's picture
Re: Path From Open Panel Plugin

That makes for an interesting study. Nice work yanomano :-)

It also provides a user friendly modal dialog box way for users to get directory contents, individually, or collectively. Ideal for those wanting to quickly get the file path for some other path entry only patch.

yanomano's picture
Re: Path From Open Panel Plugin

yep, coming slowly but definitely addict to objectiveC and openGL ;)

yanomano's picture
Re: Path From Open Panel Plugin

This is exactly the functionality :)

usefuldesign.au's picture
Re: Path From Open Panel Plugin

Thanks so much for this, Yanomano. I'm tempted to try and change the code to make a Save Dialogue to go with it.

Inspiring that you just jumped into Obj C like that with no training (if that is the case). I'm sooo thinking I could have a go now. Interested to hear how you got started with Cocoa!

I asked for this as a plugin before and I can understand the philosophical objections against it (ie. quickview etc etc) but the usefulness outweighs the danger several-fold IMHO.

V Cool

cybero's picture
Re: Path From Open Panel Plugin

Quote:

This is exactly the functionality :)

Well you can quote me in the Read Me for the patch, if one ever makes the light of day then, :-)

usefuldesign.au's picture
Re: Path From Open Panel Plugin

if (!_testMode && StructureIn != undefined) This will stop the Graph Foundation Log cascading ;-)

yanomano's picture
Re: Path From Open Panel Plugin

Regarding how i got started with Cocoa, this is all about fumbling for something you understand and then embroider around. My way is generally really empiric : reading pieces of book, reading pieces of code , dreaming of code and trying to visualize concepts because i'am very bad with abstraction. When i don't understand something i try to read as much as different books and documentation as i can to have several paradigms.The apple developer documentation is impressive and scary when you come from nowhere because it is an immense puzzle….but when you start to have the border pieces it is amazingly useful and gracious :) The QCplugin templates and all the developer samples code example are a very good start. There is also a lot of open source plugins to learn, some provided by Apple and the ones from vade, kineme, toby and some other nice guys….Then read, class your documentation, write littles pieces of code, test, do some mistakes, ask for advices, sleep 10 hours and all will be fine :)

There is also some really cool podcasts from the Stanford University, this is about iphone application programming but there are some episodes for the base for objectiveC : Stanford on Itunes

usefuldesign.au's picture
Re: Path From Open Panel Plugin

Thanks, I stated on those Stanford tutes a while back. Without actually trying to code though I tend to forget it pretty quick. I felt with those tutes there was an overview of Obj C I was missing — really fundamental concepts just being referenced in passing and I was left wondering what that was about. Patience and perseverance I guess.