PDA

View Full Version : what can i use to display file and image from folder?




newformac
Jun 3, 2011, 12:43 AM
Hi all,

i m new for cocoa and xcode,now in my application i need to display file and images of a folder.

for files there must be an option to select multiple files and take some action over them.

please guide me which control is gud for this?

thanks in advance.



chown33
Jun 3, 2011, 01:08 AM
NSOpenPanel (http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSOpenPanel_Class/Reference/Reference.html).

newformac
Jun 3, 2011, 02:01 AM
NSOpenPanel (http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSOpenPanel_Class/Reference/Reference.html).

this use to browse the file,

i want i have an directory and display it files in some list type of control.

kainjow
Jun 3, 2011, 12:00 PM
i want i have an directory and display it files in some list type of control.

NSTableView, NSOutlineView or NSBrowser.

newformac
Jun 4, 2011, 06:59 AM
i m creating a NCWindow,and use here a NSTable view.

on the button click of main window i m open a Window of table view like this.


[NSApp runModalForWindow:table_Window];
[table_Window orderOut:nil];
[NSApp endSheet: table_Window];



now i dont understand where i initialize the row and column for table to view the tableview with some data.

please help me for this.

thanks in advance.