On Tue, May 12, 2009 at 4:37 PM, Sean McBride <s...@rogue-research.com> wrote:
> My doc-based application is able to import foreign file formats.  I do
> this by creating a new instance of my NSPersistentDocument subclass and
> populate it as needed.

Add another entry to your Info.plist declaring your
NSPersistentDocument subclass as the class for the type you want to
import.  Override -readFromURL:ofType:error: to perform importing or
simply call super's implementation based on the type argument.  When
importing, set an instance variable flag that your NSWindowController
subclass (provided in -makeWindowControllers) reads in its override of
-windowTitleForDocumentDisplayName:.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to