• 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
Sending reference of MyDocument in notifications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending reference of MyDocument in notifications?


  • Subject: Sending reference of MyDocument in notifications?
  • From: <email@hidden>
  • Date: Fri, 27 Feb 2004 19:04:46 +0000

Hi there. I have a doc-based app, and in the app's MainMenu.nib file I have a window with an NSOutlineView. Now, my Controller class for this window needs to keep a reference of the active document (MyDocument). I can do this with Notifications, I can get that part working, but how would I have a reference to the active document? Do I send a pointer to the controller (for the OutlineView), or a reference? Basically, if I have a reference to the active document in the Controller class for my OutlineWindow, then I can send messages to it based on choices made in the OutlineView.

I hope I've explained it correctly. I basically need to have a line of communication between the active NSDocument and the Controller for my OutlineView. BTW, I'm still writing the old way with Project Builder and not using Bindings as I haven't had the time to fully learn it, and haven't had problems with PB in Panther so far. Thanks for everything!

James McConnell
_______________________________________________
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: Sending reference of MyDocument in notifications?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Databasing and Cocoa
  • Next by Date: Re: Easy TableView problem
  • Previous by thread: Re: Databasing and Cocoa
  • Next by thread: Re: Sending reference of MyDocument in notifications?
  • Index(es):
    • Date
    • Thread