• 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: Newbie - Setting a window to a title other then document file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie - Setting a window to a title other then document file name


  • Subject: Re: Newbie - Setting a window to a title other then document file name
  • From: Keith Renz <email@hidden>
  • Date: Wed, 17 Sep 2003 23:59:32 -0400

Hi Tom,

This method is not an accessor method (set/get) but a method you need to override in your NSWindowController subclass just like NSDocument's displayName: method. Now I know why this wasn't working for you! :) Keep in mind that this sets the window title only, not the save sheet's default file name, which I think is what you want. So, override them both to get the behavior you want.

Keith

-----

On Wednesday, September 17, 2003, at 05:25 PM, Tom Gray wrote:

Hello,

I have a NSWindowController subclass whose window I would like to set
to a title other then the filename used by the NSDocument subclass. I
have tried:

[self windowTitleForDocumentDisplayName:@"Crewdog Terminal"];

But, the title of the window on screen is still Untitled.

Any Ideas?

Tom
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Newbie - Setting a window to a title other then document file name (From: Tom Gray <email@hidden>)

  • Prev by Date: Problem with [NSStatusItem setTitle:]
  • Next by Date: Re: OpenGL performance (Cocoa)
  • Previous by thread: Re: NSSound truncates the beginnings of sounds
  • Next by thread: Re: Newbie - Setting a window to a title other then document file name
  • Index(es):
    • Date
    • Thread