Re: NSApp sendAction: to: from question
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