On Feb 6, 2008, at 2:20 PM, James Cicenia wrote:

Hmmm,

And to think I learned that method of qualifier creation from either a book or Apples own docs years ago.

I think Pierre's point was not that your code is bad, but that Generics don't solve that problem. They prevent runtime class cast problems (mostly). That is a problem that I don't have anywhere often enough to justify the time cost of fiddling with Generics.

Chuck



But mixing the objects in the List was confusing me, which is what Johann said about just using <Object>

-j-

On Feb 6, 2008, at 3:52 PM, Mr. Pierre Frisch wrote:

I completely disagree on this one. Your example is bad as it mixes different type of objects in the List. The point of generics is to catch type cast exception at compile time instead of run time. if you mix objects in the same array then it has no value but this is bad style anyway.

Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Feb 6, 2008, at 12:37, Chuck Hill wrote:


On Feb 6, 2008, at 12:33 PM, James Cicenia wrote:

Well I have decided to to start going to 1.5 now.

this is something I do all the time:

        NSMutableArray args2 = new NSMutableArray();
        args2.addObject("portfolio");
        args2.addObject(portfolio);
myQualifier2 = EOQualifier.qualifierWithQualifierFormat("%@ = % @", args2);
                                
NSArray results = EOQualifier.filteredArrayWithQualifier (portfolioUserGroups(),myQualifier2);
                

How do I make that "generic Java 1.5" friendly?


From Art:

http://weblogs.java.net/blog/arnold/archive/2005/06/ generics_consid_1.html
http://www.mindview.net/WebLog/log-0050

YMMV  :-)

Chuck

--

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/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pierre% 40apple.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

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/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to