• 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: Accessing @private superclass ivars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Accessing @private superclass ivars (From: Keith Duncan <email@hidden>)
 >Re: Accessing @private superclass ivars (From: Ofri Wolfus <email@hidden>)
 >Re: Accessing @private superclass ivars (From: "Finlay Dobbie" <email@hidden>)

  • Prev by Date: Re: Accessing @private superclass ivars
  • Next by Date: Setting table selection at document open with Core Data?
  • Previous by thread: Re: Accessing @private superclass ivars
  • Next by thread: building upon existing screensavers?
  • Index(es):
    • Date
    • Thread