Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument and setFileName:



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?



-- Seth Willits



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSDocument and setFileName: (From: Fredrik Olsson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.