• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
<no subject>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

<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.

  • Follow-Ups:
    • Re: <no subject>
      • From: Dietrich Epp <email@hidden>
  • Prev by Date: No doubt easy for you masters...
  • Next by Date: Re: No doubt easy for you masters...
  • Previous by thread: Re: No doubt easy for you masters...
  • Next by thread: Re: <no subject>
  • Index(es):
    • Date
    • Thread