bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument init


From: Matt Rice
Subject: NSDocument init
Date: Sun, 27 Jul 2003 05:02:54 -0700 (PDT)

NSDocument's init method calls 

[self setFileType: [[[self class] writableTypes]
objectAtIndex: 0]];

writableTypes ignores NSRoles of type Viewer.
so if an app was a NSDocument based Viewer, or had no
NSTypes this call would fail with "index out of
bounds".

patch checks the count of the types array and uses
Viewer and Editor NSRoles to set the default type.

matt

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Attachment: NSDocument.init.diff
Description: NSDocument.init.diff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]