[Openmcl-devel] [Q] Setting ObjC objects properties
Richard Newman
rnewman at twinql.com
Thu Jun 26 09:26:55 PDT 2008
Didier,
IIRC,
@property foo bar
is equivalent to
- (foo) bar;
- (void) setBar:(foo)bar;
with some syntactic sugar. You can do
rootLayer.layoutManager = x;
or
[rootLayer setLayoutManager:x];
Translate the latter into Lisp, et voila.
HTH,
-R
On 26 Jun 2008, at 9:02 AM, Didier Verna wrote:
>
> Hello,
>
> I want to replicate this piece of code:
>
> rootLayer = [CALayer layer];
> rootLayer.layoutManager = [CAConstraintLayoutManager layoutManager];
>
> The Apple doc says that layoutManager is a property of a CALayer, as
> in
> @property (retain) id layoutManager. I don't know what that means, but
> how do I set it in lisp ? I tried setf'inf a slot-value but that
> doesn't
> work.
More information about the Openmcl-devel
mailing list