• 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: Re: How to launch an IBAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to launch an IBAction (From: Eric PETIT <email@hidden>)
 >Re: How to launch an IBAction (From: Chad Leigh <email@hidden>)

  • Prev by Date: Re: Installing carbon event handlers into a cocoa application
  • Next by Date: Re: Strange crash with multithreading and -[NSUserDefaults synchronize]
  • Previous by thread: Re: How to launch an IBAction
  • Next by thread: Better printed documentation? (wish list)
  • Index(es):
    • Date
    • Thread