Re: ObjC question
Re: ObjC question
- Subject: Re: ObjC question
- From: Dave Carrigan <email@hidden>
- Date: Sat, 10 Apr 2010 16:21:10 -0700
On Apr 10, 2010, at 4:13 PM, Noah Desch wrote:
> If you need to enforce a specific one to one relationship between Bars and Fs you need to write code to support that. If you want Fs to know which Bar "owns" it, you need to write code to support that. I would suggest giving F a property "myBar" and giving it an initializer - (id)initWithBar:(Bar *)owner which sets the myBar property.
Also, if you tell us why you need to do this, we might be able to suggest the idiomatic Cocoa pattern that would be appropriate.
--
Dave Carrigan
email@hidden
Seattle, WA, USA
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden