NSTableView: lifespan of objectValueForTableColumn object?
NSTableView: lifespan of objectValueForTableColumn object?
- Subject: NSTableView: lifespan of objectValueForTableColumn object?
- From: "Guy Umbright" <email@hidden>
- Date: Mon, 12 Aug 2002 14:26:01 -0500
- Thread-topic: NSTableView: lifespan of objectValueForTableColumn object?
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.