• 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
Bundle-based Document applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bundle-based Document applications


  • Subject: Bundle-based Document applications
  • From: "Jeff Watkins" <email@hidden>
  • Date: Fri, 9 Jan 2004 11:49:57 -0500

Is there a "best practice" regarding the design of bundle-based document
applications? I'm still in the conceptual/design phase of the application
I'm building, so now is the ideal time to resolve this issue.

To clarify the problem I'm trying to solve:

Within the bundle, I have an xml file that describes the document. The
document is composed of many files for which a user might have already
configured a prefered editor (JPEG, GIF, HTML, etc). In addition, the
document contains files for which my application should be the default
editor.

I'm thinking along the following lines:

Declare the wrapper document as the first document in my info property list.
This makes it the default document type, created by [File | New]. Also
declare documents for each file type that my application edits.

Open contained documents using some "standard" procedure so that my
application edits its own files but Photoshop (or whatever) edits JPEGs and
BBEdit edits HTML.

Add an owner ivar to contained documents so I can notify the wrapper
document to reflect user changes. Or perhaps there's a generic Observer
protocol that I can use.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: NSImageView and keyboard input?
  • Next by Date: Solved! Re: -[NSProgressIndicator copyWithZone:]: selector not recognized
  • Previous by thread: NSImageView and keyboard input?
  • Next by thread: NSZone: generic question
  • Index(es):
    • Date
    • Thread