Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!sdsu!bionet!agate!shelby!polya!ali
From: ali@polya.Stanford.EDU (Ali T. Ozer)
Newsgroups: comp.sys.next
Subject: Re: Specifying a "factory object"
Message-ID: <12071@polya.Stanford.EDU>
Date: 30 Sep 89 07:05:20 GMT
References: <130021@gore.com>
Sender: Ali T. Ozer 
Reply-To: aozer@NeXT.com (Ali Ozer)
Organization: .
Lines: 18

In article <130021@gore.com> jacob@gore.com (Jacob Gore) writes:
>What exactly is a "factory object id?"  For example, if I have MyCell, a
>subclass of Cell, which I want to be the cell class of a matrix, what do I
>give to -setCellClass: ?
>
>In 0.9, I could just say
>	[aMatrix setCellClass:MyCell]
>but in 1.0 that gives me a compile-time error: "parse error prior to
>MyCell" (may not be the exact wording).

In 0.9, factory ids used to be global variables, so you could do the above.
In 1.0, they aren't. You need to use [Factory class] instead of just
Factory:

	[aMatrix setClassCell:[MyCell class]];

Ali Ozer, NeXT Developer Support
aozer@NeXT.com