nevermind, i managed to get it right... not sure how efficient this
code is, but at least it works :)
-=-=-=-=-
@interface AppController : NSObject
{
IBOutlet NSMenu *theMenu;
}
- (void)launchFileOrFolder:(id)sender;
@end
-=-=-=-=-=-
#import "AppController.h"
@implem
thanks ashley, you cleared up a lot for me. however, i'm now presented
with two (seemingly) small issues. the first is determining whether
the directory is empty. i've added an array with
directoryContentsAtPath, and an if statement counting the array, but
it doesn't seem to work.
second, how is
On Dec 5, 2008, at 9:44 AM, Chunk 1978 wrote:
hi.
Hi.
i've been on this task for almost a week, and i still can't get it
right. basically, i would like to have an NSMenu populated with all
the files and folders of a specific directory. for this example i'll
use ~/Documents. the code below
hi.
i've been on this task for almost a week, and i still can't get it
right. basically, i would like to have an NSMenu populated with all
the files and folders of a specific directory. for this example i'll
use ~/Documents. the code below only partially works. it will list
files and folders f