On Nov 12, 2011, at 10:45 AM, Nathan Sims wrote: > Okay, does this mean that an object instantiated by a C function has > persistence across C function calls?
Yes. Think of Objective-C references as pointers to opaque structs, and treat them like any other generic pointer variable. You can store them in globals, locals, statics, struct fields, etc. Just be careful about retain/release guidelines, i.e. if you’re storing a reference to an object in something other than a local variable, you’d better retain it first (and release it when you’re done.) —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com