Re: WOO file
Re: WOO file
- Subject: Re: WOO file
- From: Michael Gargano <email@hidden>
- Date: Fri, 03 Sep 2010 20:47:07 -0400
Sorry, that's what I meant when I said Cocoa, I just meant it's Objective-C ancestry. I get now that the selector is being called on EOSortOrdering, I thought that message was being sent to the objects being sorted... which are Strings. As long as the colon syntax is correctly handled then I guess it's fine. I wasn't really looking for bugs in the files, all I know is that what I'm trying to do is extremely straight forward and it's not working and when I saw that, I've done enough mac programming to know that isn't Java. :) So now that everything there is in order.... Any ideas on what else might cause the ordering to not work?
Thanks.
-Mike
On Sep 3, 2010, at 6:57 PM, Chuck Hill wrote:
> It is not a hold over from Cocoa days as this predates Cocoa by a good long while. This is a hold over from YellowBox (or before!) when WO was in both Java and Obj-C. Note also that this is creating an EOSortOrdering object not a String object. So EOSortOrdering is what needs to understand compareAscending (OK, technically EOSortOrdering.Comparison and EOSortOrdering.ComparisonSupport provide this method). The colon is merely a syntactic hangover from earlier compatibility needs.
>
> You are wasting your time hunting for bugs in the format of internal files.
>
>
> Chuck
>
>
>
>
> On Sep 3, 2010, at 5:39 PM, Michael Gargano wrote:
>
>> That is what the displaygroup editor generated. I just copied the text for sharing. That's why I don't know if it's a bug (which I'm assuming) or if I missing something that I did very wrong.
>>
>> -Mike
>>
>> On Sep 3, 2010, at 5:04 PM, Q wrote:
>>
>>>
>>> Woo files generally aren't meant to be edited by hand, or even looked at for that matter. You should either use the displaygroup editor built into wolips, which should "just work", or build your displaygroup in code.
>>>
>>> On 04/09/2010, at 1:32 AM, Michael Gargano wrote:
>>>
>>>> Hey Johann,
>>>>
>>>> I was just playing with the WOO file having never used it before, so this is what I have...
>>>>
>>>> {
>>>> "WebObjects Release" = "WebObjects 5.0";
>>>> encoding = "UTF-8";
>>>> variables = {
>>>> displayGroup1 = {
>>>> class = WODisplayGroup;
>>>> dataSource = {
>>>> class = EODatabaseDataSource;
>>>> editingContext = "session.defaultEditingContext";
>>>> fetchSpecification = {
>>>> class = EOFetchSpecification;
>>>> entityName = Student;
>>>> isDeep = YES;
>>>> prefetchingRelationshipKeyPaths = ();
>>>> };
>>>> };
>>>> fetchesOnLoad = YES;
>>>> formatForLikeQualifier = "*%@*";
>>>> numberOfObjectsPerBatch = 7;
>>>> selectsFirstObjectAfterFetch = NO;
>>>> sortOrdering = (
>>>> {
>>>> class = EOSortOrdering;
>>>> key = firstName;
>>>> selectorName = "compareAscending:";
>>>> }
>>>> );
>>>> };
>>>> };
>>>> }
>>>>
>>>> I'm just fetching all of the Student entities and want to sort them by their first name. The selector name for the sortOrdering makes no sense as it's obviously a hold over from the cocoa days. I know there's still NSSelector in the core frameworks, but since no such method exists on String this won't work. All the data comes back, it's just not sorted.
>>>>
>>>> Thanks.
>>>> -Mike
>>>>
>>>> On Sep 3, 2010, at 3:23 AM, Johann Werner wrote:
>>>>
>>>>> Hi Mike,
>>>>>
>>>>> what are you doing with your .woo file? I never use them and they default to just:
>>>>>
>>>>> {
>>>>> "WebObjects Release" = "WebObjects 5.0";
>>>>> encoding = "UTF-8";
>>>>> }
>>>>>
>>>>> If you want someone to help you, you should detail what exactly you want to achieve and what version of WO/WOLips/Eclipse you are using.
>>>>>
>>>>> jw
>>>>>
>>>>>
>>>>> Am 30.08.2010 um 19:14 schrieb Michael Gargano:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> When I create a WOO file, it places compareAscending: as the selector for sorting on my key. This does nothing as no such function exists on String. Does this functionality just not work with the WOLips WOO editor or is this some kind of bug?
>>>>>>
>>>>>> Thanks,
>>>>>> Mike
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>
>> _______________________________________________
>> 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/products/practical_webobjects
>
>
>
>
>
>
>
_______________________________________________
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