Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Weather App with Swift Simple Data Structures NSBundle and the File Directory

i am having problems to undertand directories

Can someone explain what it meas when he says "Returns the NSBundle object that corresponds to the directory where the current application executable is located.

" is the a directory like a pointer?

Tony Brackins
Tony Brackins
28,672 Points

I believe in this context he is referring to the directory that the application exists. For instance, mine exists here: /Users/tonybrackins/Library/Developer/CoreSimulator/Devices/B694F2A9-FB3F-4D53-922C-5DBBFAF1D243/data/Containers/Bundle/Application/D3651550-C8A2-438F-AF9A-5219D6D7B880/Stormy.app

So it's the folder that the app is in basically