Re: "context-aware" bindings

2011-02-27 Thread Charles Srstka
On Feb 27, 2011, at 9:25 AM, Mikkel Eide Eriksen wrote: > > On 27/02/2011, at 11.39, Joanna Carter wrote: > >> Le 27 févr. 2011 à 10:07, Andy Lee a écrit : >> >>> On Feb 27, 2011, at 3:19 AM, Mikkel Eide Eriksen wrote: I have a property on an object that would ideally return either its val

Re: "context-aware" bindings

2011-02-27 Thread Mikkel Eide Eriksen
On 27/02/2011, at 17.19, Joanna Carter wrote: > Le 27 févr. 2011 à 15:25, Mikkel Eide Eriksen a écrit : >> It would only return nil in some cases. I'm working on some Gedcom <-> Core >> Data code. All objects in Gedcom have a "tag" identifier. One such object is >> an "Event", with the generic ta

Re: "context-aware" bindings

2011-02-27 Thread Joanna Carter
Le 27 févr. 2011 à 15:25, Mikkel Eide Eriksen a écrit : > It would only return nil in some cases. I'm working on some Gedcom <-> Core > Data code. All objects in Gedcom have a "tag" identifier. One such object is > an "Event", with the generic tag EVEN. There are multiple subtypes of Event, > s

Re: "context-aware" bindings

2011-02-27 Thread Mikkel Eide Eriksen
On 27/02/2011, at 11.39, Joanna Carter wrote: > Le 27 févr. 2011 à 10:07, Andy Lee a écrit : > >> On Feb 27, 2011, at 3:19 AM, Mikkel Eide Eriksen 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. >>

Re: "context-aware" bindings

2011-02-27 Thread Joanna Carter
Le 27 févr. 2011 à 10:07, Andy Lee a écrit : > On Feb 27, 2011, at 3:19 AM, Mikkel Eide Eriksen 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. > > Can you tell us the name of the object and the prope

Re: "context-aware" bindings

2011-02-27 Thread Andy Lee
On Feb 27, 2011, at 3:19 AM, Mikkel Eide Eriksen 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. Can you tell us the name of the object and the property, and describe the different contexts? I'm having

Re: "context-aware" bindings

2011-02-27 Thread Kyle Sluder
On Feb 27, 2011, at 12:19 AM, Mikkel Eide Eriksen 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 > determ

"context-aware" bindings

2011-02-27 Thread Mikkel Eide Eriksen
Hi, 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. Regards, Mikkel smime.p7s Descr