Skip navigation.
 
mlRe: NSDocument and setFileName:
FROM : Fredrik Olsson
DATE : Fri Jul 14 08:09:17 2006

Seth Willits skrev:
> On Jul 13, 2006, at 5:19 AM, Fredrik Olsson wrote:
>

>> Under Tiger calling setFileName: with nil or empty string will revert
>> back to "Untitled". But under Panther it throws an exception. What
>> would best practice be?

>
> Well, you could create an untitled document and use that as "nil". Or
> I suppose you could just handle the exception as well. Out of
> curiosity, what are you doing?
>

A "e-mail" like app, where editing the subject line updates the
filename, just to get the window title correct. There are no real files,
I just like the freebies from using a document based app :).

// Fredrik Olssn
>
> --
> Seth Willits
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/fredrik.<email_removed>
>
>
> This email sent to fredrik.<email_removed>

Related mailsAuthorDate
mlNSDocument and setFileName: Fredrik Olsson Jul 13, 14:19
mlRe: NSDocument and setFileName: Seth Willits Jul 13, 21:36
mlRe: NSDocument and setFileName: Fredrik Olsson Jul 14, 08:09
mlRe: NSDocument and setFileName: Seth Willits Jul 14, 08:16