Re: Files owner vs MyController
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.