Thanks for the reply but I am not sure I follow your point. An instance of 'f' is contained precisely in one instance of Bar. I can have many Bars but each have their own instance of the class Foo. Does the language support getting the containing instance?
On Apr 10, 2010, at 3:05 PM, Seth Willits wrote: > On Apr 10, 2010, at 2:38 PM, Tony Romano wrote: > >> Using the sample below, how do I get the instance of the class in which I >> am contained WITHOUT passing it as a parameter or using hacky sizeof tricks >> in the method Foo:method? Thanks people! If this is not the correct alias >> for this type of question, apologizes in advance. > > You don't. That just doesn't make any sense. "f" can be "contained" by a > billion different objects. > > > -- > Seth Willits > > > _______________________________________________ > > 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/tonyrom%40hotmail.com > > This email sent to tony...@hotmail.com > -tony _______________________________________________ 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