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

Re: NSDocument without Title


  • Subject: Re: NSDocument without Title
  • From: Matt Gemmell <email@hidden>
  • Date: Sat, 21 Jun 2003 01:50:13 +0100

On 19/6/03 at 5:30 pm, Gerriet M. Denkmann said:

> I am trying to write a document based app. Everything works but:
> 1. the window is not titled, nor has it a proxy icon.
> 2. the windows do not stack
> 3. [ myDocument setFileName: @"huhu" ] has no visible effect.
>
> The documents are created via "openDocumentWithContentsOfFile:
> filename display: YES".

Are you using NSDocument for all this? It simplifies or eliminates most
of the busywork involved in document-based apps. Making a new Cocoa
Document-based App automatically makes your NSDocument subclass and sets
everything up.

1. It won't have a proxy icon unless it has a -[NSWindow
representedFilename] (I think). I think NSDocument also removes the
proxy icon if the representedFilename can't be resolved or found.

2. -[NSWindowController setShouldCascadeWindows:YES] should help.

3. To set an initial title before the document has been saved anywhere,
you can just use -[NSWindow setTitle:]. However, if you're using
NSDocument, this should be taken care of automatically for you.

Cheers,
-Matt

--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
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: 
 >NSDocument without Title (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: NSOpenGLView in NSSplitView, redraw problems
  • Next by Date: Re: TrollTech releases QT for Mac under GPL
  • Previous by thread: NSDocument without Title
  • Next by thread: enlarging an NSScrollView
  • Index(es):
    • Date
    • Thread