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

_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to