Re: document based app, custom ibaction
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