Re: NSTableView: lifespan of objectValueForTableColumn object?
Re: NSTableView: lifespan of objectValueForTableColumn object?
- Subject: Re: NSTableView: lifespan of objectValueForTableColumn object?
- From: Dan Wood <email@hidden>
- Date: Mon, 12 Aug 2002 16:57:49 -0700
I'd say that the lifespan is "until the table needs to redisplay the
items." For instance, resizing the window, sorting, scrolling to
uncover new rows, etc.
My suggestion would be to implement a cache of some sort, where faults
kick off a query to get the real value....
Dan
On Monday, August 12, 2002, at 12:26 PM, Guy Umbright wrote:
What is the lifespan of an object returned for
- tableView:objectValueForTableColumn:row: ?
Most examples show an overly simple (a systemic
problem with the Cocoa doc) array being the data
source, with all possible return values already
safely retained by the container.
But what about values coming from a database?
The don't "really" exist external to the database,
so what of the object values for the table cells?
Autoreleased items? Retained items that need to be
managed as well to support the table? And how
long does the table reference the object passed?
And what happens to the object when the table no
longer needs it? Is it released or just forgotten?
I know there are lots of questions here, but I thought
if the answers are not readily available, it would
spark a discussion on the care and feeding of
NSTableViews.
(sorry about the big annoying disclaimer)
This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it
is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law. If
you are
not the intended recipient, you are hereby notified that any viewing,
copying,
disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail
or
telephone, of any unintended recipients and delete the original message
without making any copies.
_______________________________________________
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.
--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/
_______________________________________________
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.