osx - How to add a file selector/opener in cocoa with Interface Builder? -


I'm thinking how to create a button or input field in the interface builder, in such a way that when clicked It opens the file dialog and allows you to select one or more files and put them in a specified array / table ...

Once the button is pressed and files are selected (this It is quite a trivial thing) I think already some sort of array (like An array with the path of the selected files), then I have got the cover. I just need to know how to link the button to a file selector and how to file files (or files) to the file selector Path) so I can redirect them to the array

This is an easy way to do this, more importantly; Is there a file selector thing or do I have to do this with XCode instead of the built-in builder?

thanks ...

ps I'm sorry if this is not the right site to ask these questions

This Xcode The code should work fine.

Just use the IB to hook up the button with a method and use that example as a guide to the method.

There are also all types of

Of course you should always read.


Comments