• 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: document based app, custom ibaction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: document based app, custom ibaction


  • Subject: Re: document based app, custom ibaction
  • From: "Sherm Pendley" <email@hidden>
  • Date: Mon, 18 Aug 2008 13:12:22 -0400

On Mon, Aug 18, 2008 at 9:52 AM, Bart Beulen <email@hidden> wrote:
>
> However I would like to add a button in my document which is connected to
> some code, to process the data in the array (etc count up data in columns).
> I was trying to do this by adding an IBAction function to the MyDocument.h
> en MyDocument.m files. The problem is that I do not know how to connect the
> button from my GUI to this action (normally I can ctrl-drag from the button
> to the object, but I guess this works different for document based apps?

Connect it to the First Responder icon in IB. That will route the
action message through the responder chain, one element of which is
the currently-active document.

Details:

    <http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/chapter_2_section_6.html>

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: document based app, custom ibaction
      • From: Bart Beulen <email@hidden>
References: 
 >document based app, custom ibaction (From: Bart Beulen <email@hidden>)

  • Prev by Date: Re: Clearing a Memory Buffer?
  • Next by Date: Re: Hex representation of NSString
  • Previous by thread: document based app, custom ibaction
  • Next by thread: Re: document based app, custom ibaction
  • Index(es):
    • Date
    • Thread