| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Look in your code, you are already using the filename and path! Below is part of your code:
NSString *content = [NSString stringWithContentsOfFile:[panel filename]];
the [panel filename] is the filename of the file you selected.
So, just use:
NSString *myFile = [panel filename];
- Bobby
NSString *content = [NSString stringWithFileName:[panel filename]];
Thanks Bobby. _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
| References: | |
| >Re: Extracting file name & path from NSOpenPanel (From: "Bobby B" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.