• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Re: textDidEndEditing[Solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Random crash in -[NSView displayIfNeeded]
  • Next by Date: Menu in iTunes
  • Previous by thread: gdb breakpoint crashes XCode
  • Next by thread: Menu in iTunes
  • Index(es):
    • Date
    • Thread