On Sun, 2003-07-27 at 06:02, Matt Rice wrote:
> 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.
> 


I applied this patch. Thanks.



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

Reply via email to