Re: WOO file
Re: WOO file
- Subject: Re: WOO file
- From: Q <email@hidden>
- Date: Sat, 4 Sep 2010 07:04:34 +1000
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