thanks, I'm making a little headway figuring this out. I think you're right that Allan has not implemented all of the NSResponder's methods. And I'm really in a bind with this because it appears that passing events will not work in all cases (not to mention that it's kinda hacky). I can solve this problem in one of two ways
<br><br>Preferred: Figure out where those methods are implemented. Since somehow when you press command - delete, it deletes to the end of the line. Yet grepping for this method doesn't find it.<br><br>Trying to avoid: Implement all of them myself. And I have no idea how to implement them myself...yet.
<br><br>pointing me in the right direction on either one would be great.<br><br>kirt<br><br>P.S. I tried sendign the message to the first responder but that did not work either.<br><br><div><span class="gmail_quote">On 1/7/07,
<b class="gmail_sendername">Rob Rix</b> <<a href="mailto:rix.rob@gmail.com">rix.rob@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
"nil" as the sender should work; it's _generally_ optional, being<br>used mainly for connecting user interface elements together that<br>might conceivably need to take some hints from the invoking element.<br>
If nil won't do it, self ought to.<br><br>Also, when you see things like below, with selectors not being<br>recognized, it is possible that Allan hasn't overridden NSResponder's<br>default implementation, which simply raises a "selector not
<br>recognized" exception. The other thing to note is that you're sending<br>to OakWindow here; I'm not clear enough on the operation of the<br>responder chain to say for sure, but you might want to send these
<br>messages not to the window instance but to the window's first responder:<br><br> [[window firstResponder] moveDown: nil]; // or, as noted, "self" if<br>nil doesn't work. But it ought to.<br><br>
Rob Rix<br><br>On 7-Jan-07, at 2:30 PM, Kirt Fitzpatrick wrote:<br><br>> I should prefix this by mentioning that this is my first foray into<br>> Objective-C. Rob Rix got me started by pointing me to the<br>> NSResponder class and telling me about the class-dump script. But
<br>> now that I am trying to call the window methods directly I do not<br>> know what to pass it as the sender argument.<br>><br>> NSResponder<br>> - (void)moveDown:(id)sender<br>><br>> I am getting this in the error log.
<br>><br>><br>> 2007-01-07 11:24:12.133 TextMate[2053] *** -[OakWindow moveDown:]:<br>> selector not recognized [self = 0x1645140]<br>> 2007-01-07 11:24: 12.134 TextMate[2053] sendEvent: Caught<br>> NSInvalidArgumentException: *** -[OakWindow moveDown:]: selector
<br>> not recognized [self = 0x1645140]<br>><br>><br>><br>> kirt<br>> _______________________________________________<br>> textmate-plugins mailing list<br>> <a href="mailto:textmate-plugins@lists.macromates.com">
textmate-plugins@lists.macromates.com</a><br>> <a href="http://lists.macromates.com/mailman/listinfo/textmate-plugins">http://lists.macromates.com/mailman/listinfo/textmate-plugins</a><br><br>_______________________________________________
<br>textmate-plugins mailing list<br><a href="mailto:textmate-plugins@lists.macromates.com">textmate-plugins@lists.macromates.com</a><br><a href="http://lists.macromates.com/mailman/listinfo/textmate-plugins">http://lists.macromates.com/mailman/listinfo/textmate-plugins
</a><br></blockquote></div><br>