• 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: "context-aware" bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "context-aware" bindings


  • Subject: Re: "context-aware" bindings
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 27 Feb 2011 00:49:55 -0800

On Feb 27, 2011, at 12:19 AM, Mikkel Eide Eriksen <email@hidden> wrote:

> I have a property on an object that would ideally return either its value or nil, depending on the context it's being called from. I could do this with multiple selectors, but was wondering if there was a "cleaner" way of determining how it is being called.

There is no clean way to determine who called you. The desire to determine your caller is a pretty strong code smell. The separate property approach is the way to go.

We now return you to your regularly scheduled Saturday night.

--Kyle Sluder_______________________________________________

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: 
 >"context-aware" bindings (From: Mikkel Eide Eriksen <email@hidden>)

  • Prev by Date: "context-aware" bindings
  • Next by Date: Re: MPVolumeView
  • Previous by thread: "context-aware" bindings
  • Next by thread: Re: "context-aware" bindings
  • Index(es):
    • Date
    • Thread