• 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: NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController


  • Subject: Re: NSWindowController
  • From: James Spencer <email@hidden>
  • Date: Sat, 13 Dec 2003 16:04:44 -0600

On Dec 13, 2003, at 3:27 PM, Jason Reece wrote:

Hi all,

Can I please have some help. I'm trying to set the title of a window
programmatically. The window is a subclass of NSWindowController, and
is built using IB. I've tried using the methods in the documents to no
avail. I.e

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

All I want to do is to set the windows title to "fred" or "banana" or
something like that. Surely it cant be that hard, can it?


Presumably, your window is an NSWindow and it's your window controller that is a subclass of NSWindowController; if so then try something like the following:

[[self window] setTitle: @"fred"];

Spence

James P. Spencer
Rochester, MN

email@hidden

"Badges?? We don't need no stinkin badges!"
_______________________________________________
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: 
 >NSWindowController (From: Jason Reece <email@hidden>)

  • Prev by Date: Re: NSWindowController
  • Next by Date: Re: NSMenu Trouble
  • Previous by thread: Re: NSWindowController
  • Next by thread: Re: NSWindowController
  • Index(es):
    • Date
    • Thread