Re: Re: How to launch an IBAction
Re: Re: How to launch an IBAction
- Subject: Re: Re: How to launch an IBAction
- From: "Julien Jalon" <email@hidden>
- Date: Sun, 12 Nov 2006 19:09:22 -0800
If you really want to "perform an action", especially if you use
"first responder" as the target, you'd better use:
-[NSApplication sendAction:to:from:]
Also, it might be better to perform the action in NSApp's delegate
"-applicationDidFinishLaunching:" method.
--
Julien
On 11/12/06, Chad Leigh <email@hidden> wrote:
On Nov 12, 2006, at 12:58 PM, Eric PETIT wrote:
> Can somebody help me to solve the following problem :
> I launch an IBAction from a menu command but I want that the same
> IBAction launches automatically at the start of my application when
> for example a boolean variable is true.
> How to make this ?
> Thank you very much for your help.
I might try this by checking the variable and then calling the action
directly in your awakeFromNib: of the main nibowner object or any
instantianted object in your nib
Chad
>
> *-*-*-*-*
> Eric PETIT
>
> <Pasted Graphic.tiff>
>
> E-mail :
> email@hidden
> email@hidden
>
> Site TURBOLOTO™ :
> http://turboloto.free.fr
> *-*-*-*-*
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40objectwerks.com
>
> This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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