• 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: Files owner vs MyController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Files owner vs MyController


  • Subject: Re: Files owner vs MyController
  • From: Ondra Cada <email@hidden>
  • Date: Sun, 25 Apr 2004 22:01:44 +0200

Ken,

On 25.4.2004, at 21:42, Ken Tozier wrote:

> I'm struggling through creating user interfaces for an application and
> am completely confused about what Files owners are good for. All the
> books I have start by creating a controller class in IB but the only
> menu code I've seen so far, seems to interact with the files owner
> object. Is it possible for the files owner to also be the controller
> class? If so, what's the point of muddying up the works by creating an
> unnecessary controller class? My books seem to gloss over this subject
> completely.

Depends on the developer: sometimes, you want the controller to be
*inside* the NIB: all the books do just that for it is the simplest way
(let alone using an NSObjectController without writing any code at
all).

On the other hand, in practice sooner or later you bump into a need to
have the controller *outside* the NIB (for example since it should load
more different NIBs on demand, or whatever). That is exactly what the
File's Owner is for.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: 
 >Files owner vs MyController (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: xCode 1.2
  • Next by Date: RE: xCode 1.2
  • Previous by thread: Files owner vs MyController
  • Next by thread: Re: Files owner vs MyController
  • Index(es):
    • Date
    • Thread