Re: If someone could inspect this code and explain to me what am I doing wrong ?
Re: If someone could inspect this code and explain to me what am I doing wrong ?
- Subject: Re: If someone could inspect this code and explain to me what am I doing wrong ?
- From: Mario Kušnjer <email@hidden>
- Date: Sat, 19 Sep 2009 00:26:04 +0200
On 2009.09.18, at 19:54, Quincey Morris wrote:
It's not clear what you think is wrong.
Data source methods may be called (in general) any number of times
at any time. If you think the NSLog output shows something wrong,
post an example here.
Hi again !
I am posting NSLog output and I add some of my questions and comments.
I expanded items by clicking the disclosure triangle:
-----------------------------------------------------------------------------------------------------
[Session started at 2009-09-18 22:20:58 +0200.]
2009-09-18 22:20:59.030 LSOutline[244:10b] 1 - item number of children
is 2
2009-09-18 22:20:59.156 LSOutline[244:10b] 2 - item at index 0 is {
listOfShowsRundownLists = (
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
);
nameOfShow = "NEWS AT 6";
}
2009-09-18 22:20:59.160 LSOutline[244:10b] 3 - item is expandable
2009-09-18 22:20:59.162 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- This is where the value of the first
item is called
2009-09-18 22:20:59.169 LSOutline[244:10b] 2 - item at index 1 is {
listOfShowsRundownLists = (
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
);
nameOfShow = "NEWS AT 10";
}
2009-09-18 22:20:59.172 LSOutline[244:10b] 3 - item is expandable
2009-09-18 22:20:59.174 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- and here of the second item.
2009-09-18 22:20:59.380 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- So why is it called again here for the
first item,
2009-09-18 22:20:59.384 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- and here for second ?
2009-09-18 22:21:02.768 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- Now I hovered mouse pointer over the
disclosure triangle and click it and this gets called first time.
2009-09-18 22:21:02.867 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- And this gets called second time.
2009-09-18 22:21:02.934 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- And this gets called third time.
2009-09-18 22:21:03.001 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- And this gets called fourth time.
2009-09-18 22:21:03.067 LSOutline[244:10b] 1.1 - item number of
children is 7
2009-09-18 22:21:03.070 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 0 is MONDAY
2009-09-18 22:21:03.088 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:03.094 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 1 is TUESDAY
2009-09-18 22:21:03.097 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:03.103 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 2 is WEDNESDAY
2009-09-18 22:21:03.122 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:03.125 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 3 is THURSDAY
2009-09-18 22:21:03.127 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:03.130 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 4 is FRIDAY
2009-09-18 22:21:03.136 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:03.155 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 5 is SATURDAY
2009-09-18 22:21:03.158 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:03.161 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 6 is SUNDAY
2009-09-18 22:21:03.163 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:03.174 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- Probable after going through the array
of children, parent has to be called again
2009-09-18 22:21:03.191 LSOutline[244:10b] 4.1 - item is MONDAY
2009-09-18 22:21:03.217 LSOutline[244:10b] 4.1 - item is TUESDAY
2009-09-18 22:21:03.221 LSOutline[244:10b] 4.1 - item is WEDNESDAY
2009-09-18 22:21:03.227 LSOutline[244:10b] 4.1 - item is THURSDAY
2009-09-18 22:21:03.229 LSOutline[244:10b] 4.1 - item is FRIDAY
2009-09-18 22:21:03.234 LSOutline[244:10b] 4.1 - item is SATURDAY
2009-09-18 22:21:03.236 LSOutline[244:10b] 4.1 - item is SUNDAY
2009-09-18 22:21:03.251 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- Probable after going through the array
of children, parent has to be called again
2009-09-18 22:21:27.193 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- Now I hovered mouse pointer over the
disclosure triangle and this gets called first time.
2009-09-18 22:21:27.261 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- And this gets called second time.
2009-09-18 22:21:27.328 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- And this gets called third time.
2009-09-18 22:21:27.396 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- And this gets called fourth time.
2009-09-18 22:21:27.461 LSOutline[244:10b] 1.1 - item number of
children is 7
2009-09-18 22:21:27.463 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 0 is MONDAY
2009-09-18 22:21:27.488 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:27.494 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 1 is TUESDAY
2009-09-18 22:21:27.500 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:27.533 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 2 is WEDNESDAY
2009-09-18 22:21:27.565 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:27.625 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 3 is THURSDAY
2009-09-18 22:21:27.629 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:27.633 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 4 is FRIDAY
2009-09-18 22:21:27.662 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:27.666 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 5 is SATURDAY
2009-09-18 22:21:27.671 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:27.675 LSOutline[244:10b] 2.1 - item for key
"listOfShowsRundownLists" at index 6 is SUNDAY
2009-09-18 22:21:27.681 LSOutline[244:10b] 3.1 - item is not expandable
2009-09-18 22:21:27.690 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 6 <--- Probable after going through the array
of children, parent has to be called again
2009-09-18 22:21:27.710 LSOutline[244:10b] 4.1 - item is MONDAY
2009-09-18 22:21:27.716 LSOutline[244:10b] 4.1 - item is TUESDAY
2009-09-18 22:21:27.766 LSOutline[244:10b] 4.1 - item is WEDNESDAY
2009-09-18 22:21:27.771 LSOutline[244:10b] 4.1 - item is THURSDAY
2009-09-18 22:21:27.773 LSOutline[244:10b] 4.1 - item is FRIDAY
2009-09-18 22:21:27.774 LSOutline[244:10b] 4.1 - item is SATURDAY
2009-09-18 22:21:27.775 LSOutline[244:10b] 4.1 - item is SUNDAY
2009-09-18 22:21:27.776 LSOutline[244:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- Probable after going through the array
of children, parent has to be called again
2009-09-18 22:21:27.778 LSOutline[244:10b] 4.1 - item is MONDAY
2009-09-18 22:21:27.782 LSOutline[244:10b] 4.1 - item is TUESDAY
2009-09-18 22:21:27.798 LSOutline[244:10b] 4.1 - item is WEDNESDAY
2009-09-18 22:21:27.799 LSOutline[244:10b] 4.1 - item is THURSDAY
2009-09-18 22:21:27.801 LSOutline[244:10b] 4.1 - item is FRIDAY
2009-09-18 22:21:27.802 LSOutline[244:10b] 4.1 - item is SATURDAY
2009-09-18 22:21:27.803 LSOutline[244:10b] 4.1 - item is SUNDAY
2009-09-18 22:48:29.150 LSOutline[287:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <--- Now I hovered mouse pointer over the
item and this gets called first time.
2009-09-18 22:48:29.152 LSOutline[287:10b] 4 - item for key
"nameOfShow" is NEWS AT 10 <---And again the second time.
2009-09-18 22:48:33.062 LSOutline[287:10b] 4.1 - item is WEDNESDAY
<--- Now I hovered mouse pointer over the item and this gets called
first time.
2009-09-18 22:48:33.064 LSOutline[287:10b] 4.1 - item is WEDNESDAY
<--- And again the second time.
The Debugger has exited with status 0.
-----------------------------------------------------------------------------------------------------------------------
This is slow while expanding and collapsing. Maybe because it is
writing to the NSLog ?
Any thoughts on this ? Anybody ?
Thanks !
Mario Kušnjer
email@hidden
+385957051982
mariokusnjer@skype
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden