• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Looking for guidance on first Core Data / Document based app - file list within the document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Looking for guidance on first Core Data / Document based app - file list within the document
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Low-Level Cocoa Typography
  • Next by Date: Problem with Core-Data relationship
  • Previous by thread: Re: Where are the header files ?
  • Next by thread: Re: Looking for guidance on first Core Data / Document based app - file list within the document
  • Index(es):
    • Date
    • Thread