• 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: IBAction in a different class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IBAction in a different class


  • Subject: Re: IBAction in a different class
  • From: Nick Zitzmann <email@hidden>
  • Date: Sat, 15 May 2004 16:07:33 -0600

On May 15, 2004, at 3:17 PM, Matt Ball wrote:

I would like to set the action of an NSToolbarItem in my ToolbarController class to be an IBAction that is located in my AppController class. Is this possible?

Yes, if your ToolbarController class can get a pointer to the address of your AppController class. One way of doing this, if AppController is your NSApplication delegate object, is to call [NSApp delegate]. You could also consider writing a singleton accessor method in your AppController class.

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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.


References: 
 >IBAction in a different class (From: Matt Ball <email@hidden>)

  • Prev by Date: Re: How to make NSImageView respond to keyboard events?
  • Next by Date: Re: How to make NSImageView respond to keyboard events?
  • Previous by thread: IBAction in a different class
  • Next by thread: Re: IBAction in a different class
  • Index(es):
    • Date
    • Thread