Re: Multiple untitled docs are saving to same file
Re: Multiple untitled docs are saving to same file
- Subject: Re: Multiple untitled docs are saving to same file
- From: Steve Mills <email@hidden>
- Date: Mon, 29 Apr 2013 23:50:12 -0500
On Apr 29, 2013, at 20:35:00, Jerry Krinock <email@hidden> wrote:
> On 2013 Apr 29, at 15:21, Quincey Morris <email@hidden> wrote:
>
>> You should generate your own unique file name, then. There's no value in preserving the incoming file name anyway, is there, since you're returning a different URL, right?
>
> Don't be afraid to do what Quincey says, Steve. Off hand, I can think of at least two places in my NSDocument subclasses where I've had to work around stuff sent to me by Cocoa which makes no sense.
>
> The document system in Cocoa is really complicated, and in Lion and Mountain Lion it became even more so. I wonder if anyone at Apple has ever worked out all of the states in all of the corner cases, or if that is even humanly possible. Maybe in their new building they'll have some really big conference rooms with really big whiteboards.
Thanks, y'all. I don't know why Apple isn't supplying at least the document's displayName for this.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden