On Feb 27, 2011, at 12:19 AM, Mikkel Eide Eriksen <mikkel.erik...@gmail.com> 
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 (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

Reply via email to