• 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: NSApp sendAction: to: from question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApp sendAction: to: from question


  • Subject: Re: NSApp sendAction: to: from question
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 01 Jan 2005 08:27:32 -0800

On Tue, 28 Dec 2004 21:05:32 -0500, Bruce Truax <email@hidden> said:
>I use NSApp sendAction: to: from: in a windowDidBecomeKey method to cause
>the contents of and editor window to be updated whenever it is brought to
>the front.  The method is:
>
>- (void)windowDidBecomeKey:(NSNotification *)aNotification
>{
>    //now send the commands to update the table
>    [NSApp sendAction:@selector(setLensDataBeingRecievedYES) to:nil
>from:nil];
>    [NSApp sendAction:@selector(processCommand:) to:nil
>from:@"\nEOS\nLENO\nRTG ALL\nVBA\n"];
>    NSLog(@"Did Become Key");
>}

This is a very indirect way to message to the editor window. Why not message
the window's controller directly? m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
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

  • Prev by Date: Re: Constant for Application directory ?
  • Next by Date: Re: Is it possible to draw text to an offscreen view that has no window?
  • Previous by thread: Re: Constant for Application directory ?
  • Next by thread: Re: Is it possible to draw text to an offscreen view that has no window?
  • Index(es):
    • Date
    • Thread