• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDocument and setFileName:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument and setFileName:


  • Subject: Re: NSDocument and setFileName:
  • From: Fredrik Olsson <email@hidden>
  • Date: Fri, 14 Jul 2006 08:09:17 +0200

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@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSDocument and setFileName:
      • From: Seth Willits <email@hidden>
References: 
 >NSDocument and setFileName: (From: Fredrik Olsson <email@hidden>)
 >Re: NSDocument and setFileName: (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Stopping an NSThread (or something similar)
  • Next by Date: Re: NSDocument and setFileName:
  • Previous by thread: Re: NSDocument and setFileName:
  • Next by thread: Re: NSDocument and setFileName:
  • Index(es):
    • Date
    • Thread