Okay here is the setup. I currently Have:
What I need to do is add the NSTableView to Display the File Names and a Small Icon if possible. Also need to be able to edit and add other traits into the file. But I just can't figure it out. Anyone even help to export to the table.
Code:
- (IBAction)addImage:(NSArray *)sender {
NSOpenPanel *open = [NSOpenPanel openPanel];
[open setCanChooseFiles:YES];
[open setCanChooseDirectories:YES];
[open setAllowsMultipleSelection:YES];
NSArray *fTypes = [NSArray arrayWithObjects:
@"jpg",
@"png",
@"jpeg",
@"gif",
@"tif",
@"bmp",
@"pcx",
@"raw",
@"pct",
@"rsr",
@"pxr",
@"sct",
@"tga",
@"JPG",
@"PNG",
@"JPEG",
@"GIF",
@"TIF",
@"BMP",
@"PCX",
@"RAW",
@"PCT",
@"RSR",
@"PXR",
@"SCT",
@"TGA",
nil];
int result = [open runModalForTypes:fTypes];
if (result == NSOKButton){
NSArray *selectedFiles = [open filenames];
int rows = [selectedFiles count];
int i = 0;
while (i != rows) {
[thumb setDataCell: [selectedFiles objectAtIndex: i] ];
i++;
}