Looking for guidance on first Core Data / Document based app - file list within the document
Looking for guidance on first Core Data / Document based app - file list within the document
- Subject: Looking for guidance on first Core Data / Document based app - file list within the document
- From: "William E. Jens" <email@hidden>
- Date: Thu, 25 Aug 2005 15:20:55 -0500
- Thread-topic: Looking for guidance on first Core Data / Document based app - file list within the document
I'm having trouble integrating file selection into my core data based
application. Picture a document window with a single column NSTableView
that will hold files (full file paths actually) along with an Add and
Delete button. I understand how to delete items from the table, but I'm
stuck on how to wire up the Add button so it pops up a browse panel to
select files. I've read about NSOpenPanel, but I'm hung up on where to
call it from.
My E-R diagram is pretty simple:
Job <--->> File
The NSTableColumn is bound to an NSArrayController (Files) that's an
Entity of "File" (hope I'm saying this correctly).
Right now the buttons are wired up such that Add inserts a row and
Delete removes it. What do I need to do to interrupt the insert so I can
feed it files from NSOpenPanel?
_____________________________________________
William E. Jens - PagePath Technologies, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden