Re: NSTableView Question
Re: NSTableView Question
- Subject: Re: NSTableView Question
- From: Cody Brimhall <email@hidden>
- Date: Sun, 3 Aug 2003 05:20:25 -0700 (PDT)
Scott-
Well, now that I've seen an example of how this is actually done in code,
I'm a little embarrassed. I think the problem I had when I first went
through the documentation and saw that setDoubleAction might do what I
want, and then went to Objc.pdf to see how SEL worked, was that when
Objc.pdf says:
SEL setWidthHeight;
setWidthHeight = @selector(setWidth:height:);
my first thought was, "where should I put that?" I sent made my initial
post because, being so used to doing everything in Interface Builder, and
having never seen a case where a target had to be assigned
programatically, this seemed a little inelegant to me. I wanted to see if
people did this some other way.
I realize now that the documentation struck me as unclear at first only
because I'm still mostly unfamiliar with how things are done in Cocoa, so
I didn't know for example if the above code needed to go in -init,
-awakeFromNib, or in some other method. In fact, as I work through
different projects, my most common source of frustration is simply not
knowing the proper places from which to call different methods. Mike
Beam's articles have helped tremendously, but it's still a struggle.
-Cody
On Sun, 3 Aug 2003, Scott Anguish wrote:
>
On Saturday, August 2, 2003, at 9:14 AM, Cody Brimhall wrote:
>
>
> Thanks for the example. I had indeed read about - setDoubleAction, but
>
> the
>
> very basic definition in Apple's documentation left much to be desired
>
> for
>
> someone who doesn't understand the inner-workings of selectors. This
>
> clears things up a bit.
>
>
>
>
I've read the doc in question...
>
>
Sets the message sent to the target when the user double-clicks an
>
uneditable cell or a column header to aSelector. If the double-clicked
>
cell is editable, this message isnt sent and the cell is edited
>
instead. You can use this method to implement features such as sorting
>
records according to the column that was double-clicked.
>
>
I'm curious what you think needs clarification? If you're having
>
trouble with it, others might. It could be clarified if you can give
>
me an indication of what you found confusing.
>
_______________________________________________
>
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.
_______________________________________________
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.