Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
26,686 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