• 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: setSortOrderings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setSortOrderings?


  • Subject: Re: setSortOrderings?
  • From: Ricardo Strausz <email@hidden>
  • Date: Wed, 19 Feb 2003 19:28:06 -0600

On miircoles, febr 19, 2003, at 18:27 America/Mexico_City, Art Isbell
wrote:

> On Wednesday, February 19, 2003, at 01:39  PM, Ricardo Strausz wrote:
>
>> [dg setSortORdering:[NSArray arrayWithObject:[EOSortOrdering
>> sortOrderingWithKey:@"detalle" :@selector(CompareDescending)]]];
>>
>> it does not work.... worse than that: the app exists with signal 11
>> (SIGSEGV)
>
> 	The Java method name is "compareDescending", not "CompareDescending".
>  Did you try that?  The EOSortOrdering class has a static variable
> named "CompareDescending", but that's not a method, so I don't think
> it can be passed to @selector().
>

Yes i did try, but with the same result. Now I am trying:

- (void)awakeFromNib
{
     EODisplayGroup *dgMov; //suppose this exists
     NSSelector =
NSClassFromString(@"com.webobjects.foundation.NSSelector");
     EOSortOrdering =
NSClassFromString(@"com.webobjects.eocontrol.EOSortOrdering");
     [dgMov setSortOrderings:[NSArray arrayWithObject:[EOSortOrdering
sortOrderingWithKey:@"detalle":[NSSelector new:@"compareDescending"]]]];

}

But  the console says:

2003-02-19 19:12:45.078 CTalma[1270] ***
+[com/webobjects/foundation/NSSelector new:]: selector not recognized
2003-02-19 19:12:45.108 CTalma[1270] AppKitJava: uncaught exception
NSInvalidArgumentException (*** +[com/webobjects/foundation/NSSelector
new:]: selector not recognized)
2003-02-19 19:12:45.136 CTalma[1270] AppKitJava: exception = ***
+[com/webobjects/foundation/NSSelector new:]: selector not recognized
2003-02-19 19:12:45.160 CTalma[1270] AppKitJava: terminating.

CTalma has exited with status 1.

How shall I invoke a constructor from this side of the bridge??
I'd tried also:
[NSSelector :@"compareDescending"];
[NSSelector NSSelector:@"compareDescending"];
[NSSelector selectorWithString:@"compareDescending"];

dino

Dino
http://homepage.mac.com/strausz



> Art
> http://homepage.mac.com/aisbell/
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: setSortOrderings? (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: setSortOrderings?
  • Next by Date: JDBC plugin
  • Previous by thread: Re: setSortOrderings?
  • Next by thread: setSortOrderings? -A dirty solution-
  • Index(es):
    • Date
    • Thread