• 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: NSTableView and End Editing notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and End Editing notifications


  • Subject: Re: NSTableView and End Editing notifications
  • From: "Paul Verity" <email@hidden>
  • Date: Thu, 03 Aug 2006 19:36:51 +0100

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@hidden>
To: Paul Verity <email@hidden>
CC: <email@hidden>
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"
<email@hidden> 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@hidden, <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


_______________________________________________
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


  • Follow-Ups:
    • Re: NSTableView and End Editing notifications
      • From: Nick Zitzmann <email@hidden>
References: 
 >Re: NSTableView and End Editing notifications (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: NSPasteboard types for JPEG, GIF and PNG
  • Next by Date: Re: Crash on [NSApp endSheet]
  • Previous by thread: Re: NSTableView and End Editing notifications
  • Next by thread: Re: NSTableView and End Editing notifications
  • Index(es):
    • Date
    • Thread