• 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: Programmatically finding an entity's subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically finding an entity's subclasses


  • Subject: Re: Programmatically finding an entity's subclasses
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 26 Oct 2012 13:29:57 -0700

On 2012-10-26, at 1:25 PM, Johnny Miller wrote:

> I never met David A. (although I really appreciate his sense of humor) but somehow I thought he was Irish - my mistake.

He is a Norseman by way Minnesota.  Ah Yup!

Calling  him Irish is going to give Kieran nightmares!


> The latter, an EO of that entity.  I have an abstract entity and I want to get a pretty print name for the sub-entities.

I suspect that you are just confusing yourself and making a trivial thing hard.  If you have an EO, you can just

eo.getClass().getName()

And EOEntity has these methods:

 String	className()
          Returns the name of the Enterprise Object class associated with the receiver.

 String	classNameWithoutPackage()
          Return the name of the Enterprise Object class associated with the receiver without the package information.


Chuck

>
> On Oct 26, 2012, at 10:20 AM, Chuck Hill <email@hidden> wrote:
>
>>
>> On 2012-10-26, at 12:33 PM, Johnny Miller wrote:
>>
>>> Nothing could be sadder than an Irishman in a dry country.  Sounds like some kind of war crime to me.
>>
>> Irish?!!?
>>
>>
>>> Another question:  Once I have the EOEntity is there any way I can access a static method or field for that class?
>>
>> For the EOEntity class or an EO of that entity?
>>
>>
>> Chuck
>>
>>
>>> 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!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>> --
>> 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!
>>
>>
>>
>>
>>
>>
>>
>>
>

--
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


  • Follow-Ups:
    • Re: Programmatically finding an entity's subclasses
      • From: Johnny Miller <email@hidden>
References: 
 >Programmatically finding an entity's subclasses (From: Johnny Miller <email@hidden>)
 >Re: Programmatically finding an entity's subclasses (From: Chuck Hill <email@hidden>)
 >Re: Programmatically finding an entity's subclasses (From: David Avendasora <email@hidden>)
 >Re: Programmatically finding an entity's subclasses (From: Chuck Hill <email@hidden>)
 >Re: Programmatically finding an entity's subclasses (From: Johnny Miller <email@hidden>)
 >Re: Programmatically finding an entity's subclasses (From: Chuck Hill <email@hidden>)
 >Re: Programmatically finding an entity's subclasses (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: D2W: getting the "root" pageConfiguration
  • Next by Date: Re: Programmatically finding an entity's subclasses
  • Previous by thread: Re: Programmatically finding an entity's subclasses
  • Next by thread: Re: Programmatically finding an entity's subclasses
  • Index(es):
    • Date
    • Thread