Re: properties attributes misunderstanding
Re: properties attributes misunderstanding
- Subject: Re: properties attributes misunderstanding
- From: Matt Neuburg <email@hidden>
- Date: Wed, 30 Sep 2009 09:20:24 -0700
- Thread-topic: properties attributes misunderstanding
On Wed, 30 Sep 2009 15:02:45 +0200, Colin Howarth <email@hidden> said:
>@property (copy) NSBezierPath *path;
>an instance of which is accessed in another class:
> temporaryPathPointerWhichIsSupposedToBeDifferent = [ray.path];
>Why isn't it doing what I think it should do?
Take a look at the docs:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Object
iveC/Articles/ocProperties.html
Search on "copy". It's all about the setter, not the getter.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden