• 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
Novice question: How to catch button click event in Doc based app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Novice question: How to catch button click event in Doc based app?


  • Subject: Novice question: How to catch button click event in Doc based app?
  • From: Magnus Strand <email@hidden>
  • Date: Thu, 20 Jan 2005 11:53:06 +0100

Hi!

I have created a Cocoa Doc based app project and I have added
an action method in the MyDocument class.

I would like this action to be called when a button in the doc is clicked on.
But there is no NSDocumentController instance to connect to from the button
in the NIB window?


Should I subclass NSDocumentController and make an instance and then
connect to this one? But then how do I substitute NSDocumentController with
MyDocumentController?

--
Regards,

Magnus Strand
System Developer, MSc

_______________________________________________
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


  • Follow-Ups:
    • Re: Novice question: How to catch button click event in Doc based app?
      • From: Joakim Danielson <email@hidden>
  • Prev by Date: Re: How to customize Comand +Q handler
  • Next by Date: Re: Why do "loose" nibs take precedence over nibs in .lproj?
  • Previous by thread: Re: How to customize Comand +Q handler
  • Next by thread: Re: Novice question: How to catch button click event in Doc based app?
  • Index(es):
    • Date
    • Thread