FROM : Paul Verity
DATE : Thu Aug 03 20:36:51 2006
Thanks Matt.
My first point of call was the archives, and I did manage to find several
solutions to problem of ending editing - in much the same way as the way
your references suggest, but none answered the question as to why I can't do
this using notifications. This is more about educating myself as to how
Cocoa all fits together, and it seems I'm missing something here. As Nick
pointed out, I have to subclass, I can't use notifications. Given that the
notification object gives me a reference the the TableView that posted the
notification, how come I can't implement the behaviour via a notification?
There is a piece of this puzzle that's missing for me.
Paul
>From: Matt Neuburg <<email_removed>>
>To: Paul Verity <paul.<email_removed>>
>CC: <<email_removed>>
>Subject: Re: NSTableView and End Editing notifications
>Date: Thu, 03 Aug 2006 11:17:09 -0700
>
>On Thu, 03 Aug 2006 14:58:22 +0100, "Paul Verity"
><paul.<email_removed>> said:
> >As a newbie I'm trying to get my head around the Cocoa API so I can
>develop
> >a GUI; I have a TableView and a button that will add new records to the
> >table each time it's clicked. I can edit the values in the table view,
>but I
> >don't want the next row in the view to be automatically selected when I
>end
> >editing (hit Return).
>
>But this is a very very very FAQ, so why not start by checking the
>archives?
>They are at:
>
><http://www.cocoabuilder.com>
>
>A very good answer has been given again and again over the years:
>
><http://www.cocoabuilder.com/archive/message/cocoa/2002/2/2/68164>
><http://www.cocoabuilder.com/archive/message/cocoa/2003/5/23/81326>
><http://www.cocoabuilder.com/archive/message/cocoa/2005/2/4/127554>
>
>m.
>
>--
>matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
>A fool + a tool + an autorelease pool = cool!
>AppleScript: the Definitive Guide - Second Edition!
><http://www.amazon.com/gp/product/0596102119>
>
>
>
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
DATE : Thu Aug 03 20:36:51 2006
Thanks Matt.
My first point of call was the archives, and I did manage to find several
solutions to problem of ending editing - in much the same way as the way
your references suggest, but none answered the question as to why I can't do
this using notifications. This is more about educating myself as to how
Cocoa all fits together, and it seems I'm missing something here. As Nick
pointed out, I have to subclass, I can't use notifications. Given that the
notification object gives me a reference the the TableView that posted the
notification, how come I can't implement the behaviour via a notification?
There is a piece of this puzzle that's missing for me.
Paul
>From: Matt Neuburg <<email_removed>>
>To: Paul Verity <paul.<email_removed>>
>CC: <<email_removed>>
>Subject: Re: NSTableView and End Editing notifications
>Date: Thu, 03 Aug 2006 11:17:09 -0700
>
>On Thu, 03 Aug 2006 14:58:22 +0100, "Paul Verity"
><paul.<email_removed>> said:
> >As a newbie I'm trying to get my head around the Cocoa API so I can
>develop
> >a GUI; I have a TableView and a button that will add new records to the
> >table each time it's clicked. I can edit the values in the table view,
>but I
> >don't want the next row in the view to be automatically selected when I
>end
> >editing (hit Return).
>
>But this is a very very very FAQ, so why not start by checking the
>archives?
>They are at:
>
><http://www.cocoabuilder.com>
>
>A very good answer has been given again and again over the years:
>
><http://www.cocoabuilder.com/archive/message/cocoa/2002/2/2/68164>
><http://www.cocoabuilder.com/archive/message/cocoa/2003/5/23/81326>
><http://www.cocoabuilder.com/archive/message/cocoa/2005/2/4/127554>
>
>m.
>
>--
>matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
>A fool + a tool + an autorelease pool = cool!
>AppleScript: the Definitive Guide - Second Edition!
><http://www.amazon.com/gp/product/0596102119>
>
>
>
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
| Related mails | Author | Date |
|---|---|---|
| Paul Verity | Aug 3, 15:58 | |
| Nick Zitzmann | Aug 3, 18:43 | |
| Matt Neuburg | Aug 3, 20:17 | |
| Paul Verity | Aug 3, 20:36 | |
| Matt Neuburg | Aug 3, 20:47 | |
| Nick Zitzmann | Aug 3, 20:56 | |
| Paul Verity | Aug 3, 21:31 |






Cocoa mail archive

