Re: Accessing @private superclass ivars
Re: Accessing @private superclass ivars
- Subject: Re: Accessing @private superclass ivars
- From: Ofri Wolfus <email@hidden>
- Date: Tue, 20 Feb 2007 20:41:21 +0200
Sure, but using the documented runtime functions you're at least safe
from the runtime's perspective, as I heard @defs() is going to be
dropped.
- Ofri
- - - - - - - - - - - - - - - - - - -
http://www.dpompa.com
- - - - - - - - - - - - - - - - - - -
On 20/02/2007, at 20:11, Finlay Dobbie wrote:
On 20/02/07, Ofri Wolfus <email@hidden> wrote:
Don't do that. Use object_getInstanceVariable() or
class_getInstanceVariable() instead. @defs() is very dangerous to
work with.
Well, in fairness, when you're jumping through hoops to escape
@private scoping then you're probably on unsafe ground in the first
place.
-- Finlay
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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