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 protected]
Seattle, WA, USA

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to