• 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: Where's the NSWindowController in a default document-based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where's the NSWindowController in a default document-based app


  • Subject: Re: Where's the NSWindowController in a default document-based app
  • From: Izidor Jerebic <email@hidden>
  • Date: Sat, 19 Jun 2004 18:54:14 +0200

On 18 Jun 2004, at 16:59, Glen Low wrote:

Hi All,

However what I don't quite understand is this:

1. When I make a new document-based app in Xcode, by default the nib gets set like this:

File's Owner == NSDocument
File's Owner window outlet == window
window's delegate == File Owner

So where does the (default?) NSWindowController come into play?


In simple default single-window-document app, the NSDocument plays the role of window controller, so there is no NSWindowController.

2. Assuming I make my NSWindowController subclass and wire it into the system, does the NSWindowController then pass responder chain messages back up to the NSDocument (or subclass) or do I have to handle all the messages at the NSWindowController level e.g. save?



No need to change anything. Messages such as "Save" will be handled by appropriate object (NSDocument) just fine...


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


  • Follow-Ups:
    • Re: Where's the NSWindowController in a default document-based app [SOLVED]
      • From: Glen Low <email@hidden>
    • Re: Where's the NSWindowController in a default document-based app
      • From: James DiPalma <email@hidden>
References: 
 >Where's the NSWindowController in a default document-based app (From: Glen Low <email@hidden>)

  • Prev by Date: drop location
  • Next by Date: Re: Making an 'Open with' menu
  • Previous by thread: Where's the NSWindowController in a default document-based app
  • Next by thread: Re: Where's the NSWindowController in a default document-based app
  • Index(es):
    • Date
    • Thread