• 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
Re: newbie nsdocument question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie nsdocument question


  • Subject: Re: newbie nsdocument question
  • From: Arthur <email@hidden>
  • Date: Wed, 9 Nov 2005 22:09:18 -0200

Hi Ian.

that did it.

cheers,
arthur

You could do something like this, where myWindow is your NSWindow *.

MyDocument *myDoc = [[myWindow windowController] document];

Ian


Hi there.

I have a cocoa document based application. At some point in my app, I need to send a message to MyDocument (that inherits from NSDocument).
How do I get the instance of MyDocument that relates to a window?


I am sorry if the answer is too obvious, but cocoa can be a bit confusing for newbies sometimes...

thank you,
arthur


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >newbie nsdocument question (From: Arthur <email@hidden>)
 >Re: newbie nsdocument question (From: Ian Anderson <email@hidden>)

  • Prev by Date: Re: Memory not being freed
  • Next by Date: Re: NSTreeController Problem
  • Previous by thread: Re: newbie nsdocument question
  • Next by thread: Re: newbie nsdocument question
  • Index(es):
    • Date
    • Thread