• 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: Secondary doc window connection (window titles)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Secondary doc window connection (window titles)


  • Subject: Re: Secondary doc window connection (window titles)
  • From: Andrea Perego <email@hidden>
  • Date: Wed, 26 Mar 2003 17:40:58 +0100

At 11:40 AM -0800 3/25/03, Justin Lundy <email@hidden> wrote:
>Message: 7
>Date: Tue, 25 Mar 2003 10:26:34 -0800
>Subject: Re: Secondary doc window connection [SOLVED]
>From: Justin Lundy <email@hidden>
>To: email@hidden
>
>Stupid me. I did not realize that NSDocument was already set up with
>windowController methods for secondary windows. using the classes
>built-in methods already accounts for this. Luckily I did not have to
>change much to implement these methods.
>Unfortunately, the secondary windows now have the document's name in
>the title, instead of the custom title that I wanted...
>

Dear Justin,

NSWindowController has the method:

- (NSString *)windowTitleForDocumentDisplayName:(NSString *)displayName

which is called before the title of the window it controls is drawn.
You may implement it in your controller class and change the window
title to your liking.
Best Regards
Andrea Perego
Univ. of Florence - Phys. Dept.
_______________________________________________
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: Declared or not?
  • Next by Date: Finding Keyspan Twin serial ports, and only those and not the internal modem
  • Previous by thread: Re: Declared or not?
  • Next by thread: Finding Keyspan Twin serial ports, and only those and not the internal modem
  • Index(es):
    • Date
    • Thread