<no subject>
<no subject>
- Subject: <no subject>
- From: "Tony S. Wu" <email@hidden>
- Date: Sat, 05 Oct 2002 23:42:09 -0700
I have a document-based application, which is also a data source of a table
view.
But I have another data source of another table view which hosts completely
different jobs.
However, this data source needs access from the document class.
So I have this line in the data source for the information I need:
NSMutableArray anArray = [(MyDocument *)[[NSDocumentController
sharedDocumentController] currentDocument] arrayINeed];
But it produces a weird problem when you open a document with another old
document existing.
Cause the currentDocument: will return the old existing document instead of
the new one that's being opened.
Can anyone tell me how to fix this??
Thanks a lot.
Tony S. Wu
email@hidden
"Nope, this world ain't perfect. But at least I know it's not because of
me."
_______________________________________________
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.