[OGo-Developer] accessing telephone numbers of team members in OGOGroupsPage
Sebastian Reitenbach
developer@opengroupware.org
Tue, 06 Mar 2007 11:28:08 +0100
Hi Helge,
developer@opengroupware.org wrote:
> On Mar 6, 2007, at 10:58, Sebastian Reitenbach wrote:
> > /* fetch members */
> > members = [cmdctx runCommand:@"team::members",
> > @"teams", self->groupList,
> > @"returnType", intObj(LSDBReturnType_ManyObjects),
> > nil];
> > NSLog(@"The team members telephones: %@", telephones);
>
> Sebastian, sorry, but please do the obvious and get and read a C
> tutorial. Then read the Objective-C book. This is really 101 stuff.
I did read a lot of tutorials, e-books, ... available on objective C, gnustep,
...
but it is a bit cumbersome, as some of the tutorials are working with
libFoundation, some
only with gnustep-base... inbetween I have no time to practice, and maybe
forget...
besides that, on the gnustep list I have read that libFoundation and
gnustep-base will be
merged. At least I know that sope and ogo compiles with gnustep-base instead of
libFoundation
installed, but without any Defautlts set, it was crashing immediately after
startup. I tested
this on OpenBSD. When the Libretto is back, I will use it install gnustep
environment and ogo
on it. So if you need someone testing sope and ogo running with gnustep-base,
I'll volunteer.
>
> members = [cmdctx runCommand:@"team::members",
> @"teams", self->groupList,
> @"returnType", intObj(LSDBReturnType_ManyObjects),
> nil];
> for (int i = 0; i < [members count]; i++) {
> NSLog(@"member: %@", [members objectAtIndex:i]);
>
> NSArray *tels = [[members objectAtIndex:i]
> valueForKey:@"telephones"];
> for (int j = 0; j < [tels count]; j++)
> NSLog(@" tel: %@", [tels objectAtIndex:j]);
> }
>
I was not aware that telephones will be accessible this way, but it looks very
promising, I
will test in the evening.
> Of course you need no code at all when you do this using
> WORepetition's as I initially suggested.
thanks for your patience
Sebastian