RE: trivial question
RE: trivial question
- Subject: RE: trivial question
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Fri, 20 Jun 2003 16:52:18 -0400
It sounds like you are handling this correctly in your code. You should not
release allKeys or allValues unless you have retained them. Beyond that,
you ordinarily should not care what the retain count is.
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Nick Hristov
>
Sent: Thursday, June 19, 2003 8:37 PM
>
To: Cocoa-Dev
>
Subject: trivial question
>
>
>
-----BEGIN PGP SIGNED MESSAGE-----
>
Hash: SHA1
>
>
- -----BEGIN PGP SIGNED MESSAGE-----
>
Hash: SHA1
>
>
Hello.
>
>
When I send a messages to NSDictionary, allKeys and allValues, do I get
>
an autoreleased object, with ref. count. 1 (i.e. it is not a temporary
>
object)?
>
>
That is the proper and expected Cocoa memory handling procedure...
>
>
Nick
>
- -----BEGIN PGP SIGNATURE-----
>
Version: GnuPG v1.2.1 (Darwin)
>
>
iD8DBQE+8lcgCyzRmbRPFlQRAtUaAJ9o0T+QjtNQyL9spy6Ex86ty80odACgqauB
>
ZdJjU5NrF7IeMYzir4qQ8e0=
>
=tYDp
>
- -----END PGP SIGNATURE-----
>
>
-----BEGIN PGP SIGNATURE-----
>
Version: GnuPG v1.2.1 (Darwin)
>
>
iD8DBQE+8lcsCyzRmbRPFlQRAg+9AJ47nHUIYm9HrN8UzuHDlYJWiAej2QCcDbcx
>
AJ0sPP2Yjmlj/ql1Hjvdt9g=
>
=XKRB
>
-----END PGP SIGNATURE-----
>
_______________________________________________
>
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.
_______________________________________________
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.