Re: Programmatically finding an entity's subclasses
Re: Programmatically finding an entity's subclasses
- Subject: Re: Programmatically finding an entity's subclasses
- From: Johnny Miller <email@hidden>
- Date: Fri, 26 Oct 2012 09:33:24 -1000
Nothing could be sadder than an Irishman in a dry country. Sounds like some kind of war crime to me.
Another question: Once I have the EOEntity is there any way I can access a static method or field for that class?
Thanks in advance,
Johnny
On Oct 26, 2012, at 9:05 AM, Chuck Hill <email@hidden> wrote:
> Sounds like too much polyester in the hot sun has started to affect poor David's mind!
>
>
> On 2012-10-25, at 6:36 PM, David Avendasora wrote:
>
>> API Inconsistencies like this drive me crazy!
>>
>> What metaphor are we using? Parent/Child? Superclass/Subclass?
>>
>> Apparently the answer is "Yes".
>>
>> To get the EOEntity that myEntity inherits from you call myEOEntity.parent()
>>
>> Okay, Fine. We're using the Parent/Child metaphor.
>>
>> To get the EOEntities that inherit from myEntity you call myEntity.subEntities().
>>
>> Wait. Whaaa??? WTF. Really? Two sides of one structure and you can't use the same metaphor?
>>
>> I tells ya, it makes me almost want to get up out of my rocking chair and dope-slap someone.
>>
>> But of course any impact that might have would be quickly erased by the simultaneous groveling hero-worship of the people who have made my coding life so easy that mixed metaphors piss me off.
>>
>> Dave
>>
>>
>> On Oct 26, 2012, at 9:00 AM, Chuck Hill <email@hidden> wrote:
>>
>>> EOEntity.subEntities:
>>>
>>> subEntities
>>>
>>> public NSArray subEntities()
>>> Returns a list of those entities that inherit from the receiver, or an empty array if no entities inherit from the receiver.
>>> Returns: An array of the receiver's sub-entities, or an empty array.
>>> See Also: EOEntity.addSubEntity(EOEntity child), EOEntity.parentEntity(), EOEntity.removeSubEntity(EOEntity child)
>>>
>>>
>>>
>>> On 2012-10-25, at 5:36 PM, Johnny Miller wrote:
>>>
>>>> What's the way to find all the entities that subclass a given entity?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Aloha,
>>>> Mr. Johnny Miller
>>>> Web Development Manager
>>>> Kahalawai Media Company
>>>> Lahaina, HI 96761
>>>> tel: (808) 661-7962 | mobile: (808) 283-0791
>>>> website | e-mail
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>> --
>>> Chuck Hill Senior Consultant / VP Development
>>>
>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>> http://www.global-village.net/gvc/practical_webobjects
>>>
>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
>>> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>>
>> —————————————————————————————
>> WebObjects - so easy that even Dave Avendasora can do it!™
>> —————————————————————————————
>> David Avendasora
>> Senior Software Abuser
>> Kaiten, Inc.
>>
>>
>>
>>
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/gvc/practical_webobjects
>
> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>
>
>
>
>
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden