RE: Re: textDidEndEditing[Solved]
RE: Re: textDidEndEditing[Solved]
- Subject: RE: Re: textDidEndEditing[Solved]
- From: "Peter Karlsson" <email@hidden>
- Date: Fri, 22 Oct 2004 14:46:24 +0200
I got it to work that way, thanks.
Peter
Ursprungligt meddelande
>
Peter,
>
>
On Fri, 22 Oct 2004 07:36:32 +0200, Peter Karlsson <email@hidden>
wrote:
>
> Before I changed my code I had a textfield where the user typed some
text.
>
> He then pressed a OK button and in that action I had some code that
added
>
> the text to my tableview + a couple of other things. Now the user types
the
>
> text directly in the tableview row. Where should I place my code, in my
>
> sublass of tableview under textDidEndEditing? Or can I still place my
code
>
> in the controller somewhere?
>
>
Your NSTableView subclass is, quite surprisinsigly, a view component,
>
so it should not act as a controller one.
>
>
Assuming you don't use bindings, place your controller code in the
>
tableView:setObjectValue:forTableColumn:row: method of the table's
>
data source. If you don't know what I'm talking about, check the
>
documentation for NSTableView and NSTableDataSource.
>
>
If you're using bindings, I'll shut up and let someone with more
>
knowledge than me enlighten you.
>
>
Andréas
>
>
--
>
http://andreassaudemont.net/
>
_______________________________________________
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