[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSDocument init
From: |
Adam Fedor |
Subject: |
Re: NSDocument init |
Date: |
16 Aug 2003 11:14:43 -0600 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: NSDocument init,
Adam Fedor <=