Re: Setting BOTH single and double actions from an outline view
Re: Setting BOTH single and double actions from an outline view
- Subject: Re: Setting BOTH single and double actions from an outline view
- From: zauhar <email@hidden>
- Date: Fri, 16 May 2003 09:02:14 -0400
Hi Craig.
Thanks for the response!
But something still seems funky in all this. The setTarget: method
(inherited from NSControl) does take an object id as argument, which
meshes with my assumptions as expressed in my initial message.
BUT, looking at some of my own code that uses NSTableViews (and which
use the same machinery as NSOutlineView), I see that I have been
merrily connecting the target of the table view to the METHOD of an
object all along. I am only thinking about this now because it is the
first time I have wanted to respond to double-clicks.
Does setting the target in IB imply more than simply invoking
setTarget:? Does it set the target object AND set the selector for the
target method for single click?
Randy
On Friday, May 16, 2003, at 05:48 AM, Craig Bakalian wrote:
Hi Randy,
You are missing nothing. There have been several occasions where IB
has not cooperate with settings like you described below. Setting an
instance's pointer in your controller object to register a selector is
going to be more reliable, at least, I think that is what you are
saying.
Which brings me to a question, how does the Cocoa team at Apple
cooperate with the IB team at Apple?
Craig Bakalian
www.eThinkingCap.com
On Thursday, May 15, 2003, at 09:06 PM,
email@hidden wrote:
The sequence of events that I fantasize is as follow:
1) In IB, set the target to be my mainController object.
2) In my code, set the appropriate method selectors for the outline
view, using setAction: and setDoubleAction:
My fantasy does not mesh with reality, since IB insists that I set the
outline view target to be a method inside my controller object, not
the
controller itself.
What I am I missing?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104
Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web:
http://tonga.usip.edu/zauhar
Discussion after watching Disney's "Lilo & Stitch":
DAD: "But why did the space aliens speak English, as opposed to French,
or Swahili? And why did the one alien speak English with an Eastern
European accent? I don't get it."
CATHERINE (age 7): "That's 'cause you don't have a good cartoon brain."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.