Re: Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-07 Thread Chunk 1978
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

Re: Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-06 Thread Chunk 1978
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

Re: Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-05 Thread Ashley Clark
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

Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-05 Thread Chunk 1978
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