• 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
MainMenu and NSDocument problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MainMenu and NSDocument problems


  • Subject: MainMenu and NSDocument problems
  • From: Darren Ford <email@hidden>
  • Date: Thu, 2 Oct 2003 22:37:45 +1000

Hi all,

I have a small project that I'm working on, based on a multiple document interface (the first I've attempted).

I'm attempting to write the document out to a file by overriding writeToFile: in my NSDocument-based (iSDocument) class. The callback to the Save menu is intercepted in my iSDocument class correctly, however I'm finding that the values of my member variables in the class (specifially NSTextField items) are all nil pointers.

These pointer values are fine when eg. I click a button on my interface and enter an action method, however when I go through the Save menu item they all appear as nil.

Is there something that I haven't hooked up properly in my MainMenu,nib file?

Thanks -- Darren.
_______________________________________________
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: MainMenu and NSDocument problems
      • From: Adam Knight <email@hidden>
  • Prev by Date: Re: Localization of initWithWindowNibName
  • Next by Date: Recognizes color in an image
  • Previous by thread: Re: Packagemaker can't be copied
  • Next by thread: Re: MainMenu and NSDocument problems
  • Index(es):
    • Date
    • Thread