• 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: cocoa-dev digest, Vol 2 #1127 - 18 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 2 #1127 - 18 msgs


  • Subject: Re: cocoa-dev digest, Vol 2 #1127 - 18 msgs
  • From: Kirk Kerekes <email@hidden>
  • Date: Mon, 19 Aug 2002 12:19:41 -0500

On Monday, August 19, 2002, at 11:18 AM, email@hidden wrote:

Message: 17
Date: Mon, 19 Aug 2002 17:27:42 +0200
Subject: NSWindow's title
From: Nico <email@hidden>
To: Cocoa Dev List <email@hidden>

Hi :>

I've got a little problem woncerning NSWindows.. In a doc-based Cocoa app,
each time I create a new document, its window set its title to "Untitled x",
even if I use -setTitle: in my overriden method of
-windowControllerDidLoadNib:

How can I avoid this and choose my own title ?

Either override NSDocument's
displayName
method,

or NSWindowController's
windowTitleForDocumentDisplayName:displayName
method.

In a doc-app, it would seem that displayName would be more straightforward, as you have likely already subclassed NSDocument.

Be certain that you really want to do this, however -- the concept that an un-saved document is "Untitled" is a core aspect of the doc-app UI -- you should have a VERY good reason to change this behavior. It may be that the doc-app model isn't the correct one for your application.




Thanks! Nico
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSWindow's title
  • Next by Date: Re: Monitoring class loading
  • Previous by thread: Re: NSWindow's title
  • Next by thread: Re: why 2 dns addresses
  • Index(es):
    • Date
    • Thread