NSBrowser's reloadColumn: question
NSBrowser's reloadColumn: question
- Subject: NSBrowser's reloadColumn: question
- From: Anup Murarka <email@hidden>
- Date: Sat, 28 Sep 2002 21:32:25 -0700
I'm curious if anyone has experience with reloadColumn: from NSBrowser?
I have a single column list of hardware devices in a selector window
(originally from one of the Firewire SDK examples).
The Browser's cells are loaded in my delegate's
browser:willDisplayCell:atRow:column: method by [cell
setRepresentedObject:lun].
The delegate calls reloadColumn:0 when it gets a notification that a device
has been removed.
If there was only one object in the list, the list now is empty and the
delegate returns 0 in browser:numberOfRowsInColum:.
The cells for the Browser don't release their retained objects as the
NSBrowser class seems to simply clear the titles. When a new object is
added, the old cached object is released and the new one is retained.
If I use loadColumn: instead of reloadColumn:0, the cells immediately
release their objects.
I would have though loadColumnZero: and reloadColumn:0 to have displayed the
same behavior in this example.
What do the folks here on the list think?
Thanks,
anup
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.