• 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: ObjC question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >ObjC question (From: Tony Romano <email@hidden>)
 >Re: ObjC question (From: Seth Willits <email@hidden>)
 >Re: ObjC question (From: Tony Romano <email@hidden>)
 >Re: ObjC question (From: Noah Desch <email@hidden>)

  • Prev by Date: Re: ObjC question
  • Next by Date: Re: ObjC question
  • Previous by thread: Re: ObjC question
  • Next by thread: Re: ObjC question
  • Index(es):
    • Date
    • Thread