• 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: properties attributes misunderstanding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSRunLoop method - configureAsServer alternative in 10.6.1?
  • Next by Date: Re: [Solved] NSRunLoop method - configureAsServer alternative in 10.6.1?
  • Previous by thread: Re: properties attributes misunderstanding
  • Next by thread: NSRunLoop method - configureAsServer alternative in 10.6.1?
  • Index(es):
    • Date
    • Thread